[wp-trac] [WordPress Trac] #41286: Focus style and High Contrast Mode
WordPress Trac
noreply at wordpress.org
Mon Dec 18 20:05:36 UTC 2017
#41286: Focus style and High Contrast Mode
-----------------------------------------+--------------------------------
Reporter: afercia | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: has-screenshots ui-feedback | Focuses: ui, accessibility
-----------------------------------------+--------------------------------
Comment (by afercia):
Discussed during today's weekly a11y bug-scrub, reporting here some
thoughts emerged during the discussion, for reference:
- maybe use '-ms-high-contrast' as CSS hack to target Windows High
Contrast Mode? Seems as of Microsoft Edge, -ms-high-contrast: none is no
longer supported
- Hans Hillen wrote a JS library for detecting high contrast mode; we
could experiment with that:
http://hanshillen.github.io/HCMDS/hcmode_detection.html
- use system color keywords? They were experimented a bit in Gutenberg
with not so great results, as they vary across OSes
- the only proper way would be using outline/border for focus styles, it
feels like that’s the _right_ way, tough change to make, though
- worth noting some focus style refactoring has been discussed for quite a
long time
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41286#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list