Claro primary tabs collapsed menu hamburger icon has insufficient contrast with forced-colors dark background

Created on 17 March 2025, 4 months ago

Problem/Motivation

In forced-colors emulation on Firefox MacOS, the "hamburger" menu icon for the collapsed primary tabs (menu local tasks) does not adjust color.

On a dark background, the blue icon has insufficient contrast.

I'd guess that this also applies to WHCM, but that needs confirmation.

Steps to reproduce

  1. In the Firefox Configuration Editor, change browser.display.document_color_use to 2.
  2. In the Firefox color settings, change colors to get dark background, light text, and yellow links, with "Override" set to "Always".
  3. With Claro as the admin theme, go to /admin/content.
  4. Reduce the window size until the primary tabs collapse into a menu with the hamburger icon.

Like the table sort icons, the color of the hamburger icon should match the color of links:

Proposed resolution

  1. Change the icon to a background image.
  2. In a media query for forced-colors: active, use the CSS mask-image property with linktext background color.

For example, the table sort direction indicator:

  @media (forced-colors: active) {
    background: linktext;
    mask-image: url(../../images/icons/003ecc/sort--asc.svg);
  }

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.1 🔥

Component

Claro theme

Created by

🇺🇸United States kentr Durango, CO

Live updates comments and jobs are added and updated live.
  • 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

Merge Requests

Comments & Activities

Production build 0.71.5 2024