Closed (fixed)
Project:
Drupal core
Version:
9.4.x-dev
Component:
Claro theme
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Sep 2020 at 01:51 UTC
Updated:
11 Apr 2022 at 18:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
katherinedThis patch takes the same approach as #3171727-3: Claro breadcrumb divider needs Windows High Contrast mode improvements. I've changed the default icon state to currentColor, and eliminated the focus state since it does not provide sufficient contrast in Firefox using high-contrast mode. Since Firefox can't be targeted with a high-contrast media query, this seems like a worthwhile compromise. Screenshots of that are below. I've left the disabled state, as it is needed for the icon to be visible in Firefox with high-contrast enabled, and this seems like the best result for all browsers and modes. Firefox high-contrast with the light theme shows the select icon with low contrast in the disabled state, but the disabled state is low contrast using its default colors as well.
Chrome, before:

Chrome, after:

IE 11 high-contrast:

Firefox high-contrast (top one has focus):

Comment #3
katherinedComment #4
katherinedAdding gifs for clarity.
Before:

After:

Comment #5
katherinedRestoring the focus state because it uses a blue that provides acceptable contrast.
Comment #7
tanubansal commentedPatch #5 is restoring the focus state on 9.1
Comment #8
mgiffordtagging
Comment #11
mherchelThanks for the patch @katherined!
currentColordoesn't work when the SVG is being used as a background image. Furthermore, there's a bug in Chromium/Edge where it doesn't work as expected when used as afillin an embedded SVG.The same issue was solved in Olivero and passed review from the accessibility maintainers. We should fix it here in the same way.
See #3223271-14: Olivero: Select dropdown icons need more contrast in Windows High Contrast mode
Comment #12
jasonfelix commentedAttached is a patch for 10.0.x. Patch 9.4.x incoming.
Comment #13
jasonfelix commentedAttaching patch for 9.4.x.
Comment #14
jasonfelix commentedTrying the patch again
Comment #15
mherchelThe patch in #12 looks perfect. I walked @jasonfelix through this process. This is the same code that went into Olivero and has approval from the accessibility team.
Leaving as Needs Review, because I still need to review the 9.4.x patch.
Comment #16
mherchelReverting changes to summary
Comment #17
mherchelThe 9.4.x patch doesn't work with IE11. This is because the high contrast media query precedes the rule that it overrides.
Will fix Monday
Comment #18
jasonfelix commentedFixing issues
Comment #19
jasonfelix commentedI realized the 10.0.x patch didn't remove the background image for focus and disabled states. This fixes that.
Comment #20
mherchel#18 looks good. Leaving as needs review until I test the 10.0.x patch.
Comment #21
mherchel#19 looks perfect as well.

Comment #24
ckrinaCommitted 9a69d91 and pushed to 10.0.x. Also committed and pushed to 9.4.x. Thanks!