Problem/Motivation
I had opened that issue already over in the Gin queue https://git.drupalcode.org/project/gin/-/work_items/3506320
The title of navigation blocks is using the same color in light and dark mode. In light mode that combination has a high enough color contrast of 4.62:1 while in dark mode it only has 3.1:1 the required minimum for SC1.4.3 is 4.5:1
Dark mode
--admin-toolbar-color-gray-700 (#6d7583) against the background (#2a2a2d) of the navigation sidebar 3.1:1

Light mode
--admin-toolbar-color-gray-700 (#6d7583) against the background (#ffffff) of the navigation sidebar 4.62:1

Steps to reproduce
- Go to
/admin/config/user-interface/navigation-blockand press the enable edit mode - Configure one of the navigation blocks and enable
Display titleand save everything - Go to
appearance/settings/default_adminand switch between light and dark mode and take a look at the navigation block title each time
Proposed resolution
Ensure that the navigation block titles always have a color contrast of at least 4.5:1 in light and dark mode
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3637233
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #5
hoxton commentedusing --admin-color-text-loud on toolbar-block__title 's color is able to maintain the contrast requirements.
Comment #6
hoxton commentedComment #7
rkollerthank you for working on it. there are two problems you have chosen the branch name
mainforMR17774which collides with the default branch name for thecorerepo. therefore i was unable to check out and manually test your changes.and looking at the diff i am not sure picking
--admin-color-text-loudis the right choice. that name carries a meaning semantically. the page title currently uses the following according to devtools:--admin-toolbar-color-gray-700: var(--drupal-admin-color-gray-700, #6d7583). I probably would stick to the--admin-toolbar-color-grayscale and try the closest available variable that reaches at least a color contrast of 4.5:1 within that gray scale in dark mode.Comment #8
hoxton commentedI will make the corrections for branch name.
For the contrast thing, trying
--admin-toolbar-color-gray-500gave contrast of4.43:1in dark mode and3.22:1in light mode. It was the closest to the required scale.Using
--admin-color-text-loudmay be ok with block title and it aligns with the contrast requirement.