Problem/Motivation

The local task styles for narrow viewports got broken. Git bisect places this with commit e9065446e20, for #3590364: Part 2 of Consolidate, refactor, remove and untangle Claro's CSS from Default Admin theme.

Screenshots of the local tasks at /admin/appearance/settings/default_admin in dark and light mode with a narrow viewport, for commits f6c6aec7302 and 2742c2ebe65, respectively:

Dark mode, @f6c6aec7302:

Dark mode, @2742c2ebe65:

Light mode, @f6c6aec7302:

Light mode, @2742c2ebe65:

Some of the color combinations fail WCAG SC 1.4.3 Contrast (Minimum) (Level AA).

Steps to reproduce

  1. Set admin theme to Default Admin.
  2. Go to /admin/appearance/settings/default_admin.
  3. Reduce window width until the level one local tasks appear as a dropdown menu (approximately 760 px).
  4. Observe the local tasks in both light and dark mode.
Differences

On a higher level, it looks like a lot of Claro styles are currently in effect.

  1. Side border color for active item.
    In dark mode, this is a WCAG color contrast failure (contrast is 1.74:1)
  2. Button styles.
  3. Button left border.
  4. Dark mode background colors (uncertain which is correct).
  5. Border radii.

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3595092

Command icon 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

kentr created an issue. See original summary.

kentr’s picture

Issue summary: View changes

debdeep.mukhopadhyay made their first commit to this issue’s fork.

debdeep.mukhopadhyay’s picture

Hi @kentr,
I was able to reproduce this issue locally and found that the background-color on .tabs__trigger and .tabs__link was causing the problem in dark mode. The attached PR makes those elements transparent in gin--dark-mode, which appears to restore the expected behavior.

I also noticed a separate WCAG 1.4.3 contrast warning for the "Expand sidebar" label while testing with Accessibility Insights. If needed, I'd be happy to look into that in a follow-up.

For transparency, I used AI assistance while investigating the issue and drafting this comment, but the testing, verification and solution were done manually on my local setup.

kentr’s picture

@debdeep.mukhopadhyay,

I also noticed a separate WCAG 1.4.3 contrast warning for the "Expand sidebar" label while testing with Accessibility Insights. If needed, I'd be happy to look into that in a follow-up.

Thanks. I saw this also. For the most part, the accessibility team has been waiting on the CSS to stabilize before filing new issues. See #3582351-8: [Meta] Clean up CSS within Admin theme.

Some issues have spontaneously resolved with all of the refactoring, such as #3576874: Toggle switches are visually broken within dialog modals.

I created this issue because it was clearly a regression from #3590364: Part 2 of Consolidate, refactor, remove and untangle Claro's CSS from Default Admin theme, and I thought the maintainers would want to know about it ASAP.

kentr’s picture

I reported the issue with the Navigation top bar, which includes the Expand sidebar button, here: #3592061: List of visual differences between Gin & Admin theme

mherchel’s picture

Status: Active » Closed (outdated)
StatusFileSize
new54 KB

This one got fixed in #3599680: Consolidate, merge, and refactor Gin's CSS variable's into Admin theme's original variables.. We don't normally fix unrelated issues, but since we're in a hurry to meet the 11.4.0 deadline, and was refactoring that anyway, I fixed it.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

kentr’s picture

Title: [regression] Local tasks colors in dark mode on narrow viewport are wrong » [regression] Local tasks styles on narrow viewport are wrong
Status: Closed (outdated) » Needs work
Issue tags: +Needs issue summary update
StatusFileSize
new34.8 KB
new34.65 KB
new36.33 KB

Not all of the colors got fixed:

  • Side border color for active item. This is a WCAG color contrast failure (contrast is 1.74:1)
  • Button color.
  • Button left border.

There are others, such as border radii and light mode colors. On a higher level, it looks like a lot of Claro styles are currently in effect.

I'm rescoping this because creating new issues is a PITA.

Screenshots:

Dark mode, current:

Light mode, @f6c6aec7302:

Light mode, current:

kentr’s picture

Issue summary: View changes
Issue tags: -Needs issue summary update
kentr’s picture

Issue summary: View changes
StatusFileSize
new36.77 KB
kentr’s picture

Issue summary: View changes
kentr’s picture

Issue summary: View changes
kentr’s picture

Issue summary: View changes
kentr’s picture

Status: Needs work » Closed (outdated)
Issue tags: -Regression

Summarizing our Slack discussion regarding the Claro styling:

It's intentional that some of the styling is Claro instead of the original Default Admin, because it matches the current verstion of Gin. This version looks different than the version that was merged into core.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.