Theme accessibility#
The theme strives to be meet WCAG 2.1 at Level AA. You are encouraged to read through the quick reference and try to meet the Level A and AA criteria (and AAA if you’re being ambitious!) which are relevant for the change you’re making.
Some a11y helpers and features provided by the theme:
.hide-texthelper class - hides text while making it readable for screen readers.visually-hiddenhelper class - hides element while making it readable for screen readers, but element will become visible when focussed or active (e.g. for ‘Skip to main content` button)- all clickable elements (e.g. buttons, icon links) are minimum 48px x 48px
- semantic colors in
abstracts/_colors.scssmeet color contrast requirements - provides various skip navigation links
header.htmlcontains JS for header, nav menu & search menu a11y:- adding keyboard controls for nav disclosure menu
- adding
aria-expandedproperties on toggle trap-focusbutton for focus management forrole="dialog"
- see
partials/nav-menu.htmlfor examples of applyingariaproperties
a11y testing#
You can also run automated a11y tests using Lighthouse in Chrome DevTools, as a Chrome extension, or on the command line.
Automated a11y tests are currently set up to run as part of the build pipeline for key sites that use Jekyll ANU theme, and the results logged to the Accessibility Metrics page of this docs site.