Making your Custom Theme more Accessible

We're recently added better 'accessibility' support to Exponent so it may be used with a screen reader. This is mandated with some public website due to the Americans with Disabilities Act. While the code shipped with Exponent v2.4.0 includes these changes, they may need to be integrated into your custom theme. Though you can check your theme/subtheme templates and custom views with the ones we ship, here are some things to look for:

The theme/subtheme templates must contain a 'language' in the html tag

from

<html>

to

<html lang="<?php echo (substr(LOCALE,0,2)) ?>">

any {img ...} tag found in any template view (.tpl file), must include a 'alt=xxx' entry

any button or input area with NO label, or any with only an icon must include

aria-label="{'button label'|gettext}"

While this is not an all-encompassing list, it will get you through most of the errors that an accessibility plugin for your browser would report