Changes

Jump to: navigation, search

Gaia/Shared/Components

143 bytes added, 01:26, 3 June 2015
up
Most of accessibility(a11y) enhancements could be pre-defined by component. The component user could benefit from a11y automatically.
The '''component should inherit from proper native element''', and add proper role of aria.
http://rawgit.com/w3c/aria/master/aria/aria.html
For example, button should inherit from `HTMLButtonElement` and have `role=button` attribute.
The '''current name or state should be exposed ''' to ScreenReader as well. For example, button should have `aria-checkd="true" aria-disabled="true"` when button is checked and disabled. * '''use setAttribute''' to set aria attribute to host element but not inner element to prevent double trigger the related event.
PS: To enable Screen reader on FxOS device, tap up then down button trice. then tap up then down button trice again.
Confirm
681
edits

Navigation menu