modxcms / a11y

MODX Accessibility for the Manager
13 stars 10 forks source link

Add alt text for images and font icons in uberbar #19

Open dubrod opened 9 years ago

dubrod commented 9 years ago

For compliance with Web Content Accessibility Guidelines (WCAG)

<span class="icon-gear icon icon-large" aria-hidden="true"></span><span class="visually-hidden">System Menu</span>

Or use role="image" and aria-label:

<span class="icon-gear icon icon-large" role="image" aria-label="System Menu"></span>

See accessibility to-do list at https://dequeuniversity.com/modx-accessibility.html#uberbar

dubrod commented 9 years ago

manager/controllers/a11y-theme/header.php

$userImage = '<img src="' . $gravsrc . '" alt="'.$this->modx->getLoginUserName().'" />';

dubrod commented 9 years ago

Changing the Icons requires a change to the Core Lexicon so we are adding this to the Core Considerations

I don't believe a mixture of icons and text will be an effective experience, it should just be all text menus. Open for discussion.

kensgists commented 9 years ago

Haven't seen the final implementation of this, but note that simple background images will not render when Windows High Contrast is enabled. However, if you are using font glyphs, these will render out fine (as would something referenced by an image tag). We did a bunch of experiments on buttons and how they get spoken. Turns out the way they are spoken depends somewhat on how you get to them in the screen reader -- via tabbing or via arrows. This is particular to focusable items, but it may be useful information. Here are our results: https://dl.dropboxusercontent.com/u/4904309/experiments/buttons.html. Note, all of these implementations work fine in Windows High Contrast.