The design is broken on the navigation layout page in dark mode

Created on 8 July 2025, 27 days ago

Problem/Motivation

The design on admin/config/user-interface/navigation-block is broken:

Steps to reproduce

  • switch to dark mode
  • go to admin/config/user-interface/navigation-block
  • enable the edit mode

Proposed resolution

Fix the background color of the navigation blocks, adjusting it to the correct background color for dark mode and adjust the color of their menu item labels accordingly, that also have aside the break of styling a too low color contrast currently (SC1.4.3). The block with the status message needs to adjust the background color as well.

For the add block button i'll open a separate issue and link in here afterwards. it has a too low color contrast (WCAG2.2 SC1.4.11) but the problem applies to the light and dark. and the problem of the menu item for the current page that applies to the navigation layout page as well is already covered in 🐛 Improve the color contrast for the menu item of the current page Active .

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

5.0

Component

User interface

Created by

🇩🇪Germany rkoller Nürnberg, Germany

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Comments & Activities

  • Issue created by @rkoller
  • 🇩🇪Germany rkoller Nürnberg, Germany
  • 🇵🇰Pakistan akhtardaha

    I was able to reproduce this issue and I have created the patch.

  • 🇩🇪Germany jurgenhaas Gottmadingen

    @akhtardaha thank you for your contribution. Please turn this into an issue fork to create an MR so that the tests can pick this up and run before we spend time reviewing this. And to do that, CSS files don't get created or edited directly, please edit the SCSS sources and then run the tools to compile that into CSS.

  • @akhtardaha opened merge request.
  • 🇵🇰Pakistan akhtardaha

    @jurgenhaas MR created

  • 🇩🇪Germany rkoller Nürnberg, Germany

    thanks for the MR! I've taken a look at the interface not the code, and noticed a few details:

    From the points listed in the proposed resolution section the background of the warning message looks good now. thanks! The other details probably need some more work:

    • in light mode the entire background color for the sidebar remains homogenous while in dark mode when edited the navigation blocks have now the lighter rgb(59,59,63) (--admin-toolbar-color-gray-050) instead of the general darker rgb(42,42,45) (--admin-toolbar-color-white) background color. I would suggest to go with the darker color (rgb(42,42,45)) for the navigation block background as well.
    • another detail not listed in the issue summary yet, but from my perspective within the scope of the issue, but it could also moved to a follow up if necessary, the outline rgb(0,0,0) for the active navigation block has a too low color contrast against rgb(42,42,45). it has a color contrast of 1.5:1 but 3:1 is required.
    • the plus in the add block button has a color != the accent color in use - same for the light mode while claro is using a grey color here. havent noticed that before. but it looks odd. i am not sure on what color that plus is based on, is it the same for every accent color in light mode and the same for ever accent color in dark mode? or do the colors also shif based on the chosen accent and focus color? or is it one consistent color for the plus in light and another in dark mode?

    The rest of the remaining issues (current menu item, navigation block title labels, expand and collapse nav button) are already covered in other issues. And i've updated the issue summary adding the detail about the outline of the active navigation block. setting the issue back to needs work.

Production build 0.71.5 2024