Quick Note on ARIA and Windows High Contrast Mode | scottohara.me

Quick Note on ARIA and Windows High Contrast Mode

Published:

Feb 12, 2019

|
Updated:

2019.07.16

Tag(s): accessibility, Windows High Contrast Mode, ARIA

When testing websites and apps in Windows High Contrast Mode (WHCM), there are two issues I’ve come across over again and again.

WHCM cares not for your ARIA attributes

While ARIA attributes (representing roles, states and properties) coupled with CSS can be used to alter the semantics and visual appearance of an element (for example, creating custom buttons or links), WHCM can pierce through these shenanigans. The OS-level user styles will ignore the semantic modifications to these elements, and will provide high contrast coloring based on the element’s base semantics.

Consider the following:

This screen shot consists of two actual links and other elements styled to be semantically announced and look like links. Review the link CodePen for the source.

But when Windows High Contrast Mode is enabled, many of these “links” are not colored as one might expect:

With WHCM turned on the true links [...]

Read article at scottohara.me

Article Taxonomies

Categories:
Fatal error: Uncaught Error: Object of class WP_Error could not be converted to string in /home/webable/www/www/wp-content/themes/webable/content-mcm.php:65 Stack trace: #0 /home/webable/www/www/wp-includes/template.php(812): require() #1 /home/webable/www/www/wp-includes/template.php(745): load_template('/home/webable/w...', false, Array) #2 /home/webable/www/www/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #3 /home/webable/www/www/wp-content/themes/webable/single-mcm_article.php(15): get_template_part('content-mcm') #4 /home/webable/www/www/wp-includes/template-loader.php(106): include('/home/webable/w...') #5 /home/webable/www/www/wp-blog-header.php(19): require_once('/home/webable/w...') #6 /home/webable/www/www/index.php(17): require('/home/webable/w...') #7 {main} thrown in /home/webable/www/www/wp-content/themes/webable/content-mcm.php on line 65