Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 300130

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

$
0
0

Problem/Motivation

In forced-colors emulation on 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.

Screenshot of Claro primary tabs menu hamburger icon in chrome with forced-colors emulation with dark theme

Screenshot of Claro primary tabs menu hamburger icon in Edge with Page Colors setting on dusk theme

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

Steps to reproduce

  1. With Claro as the admin theme, go to /admin/content.
  2. Do one of:
  3. Reduce the window size until the primary tabs collapse into a menu with the hamburger icon.
Expected

In forced-colors: active mode, the icon color should be ButtonText.

Proposed resolution

Add a media query to the SVG file for (forced-colors: active), specifying currentColor for the fill. This will allow the icon to inherit color from the parent button element in forced-colors mode. 

@Curtis Wilcox also contributed to this proposed resolution.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 300130

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>