codeforboston / cliff-effects

Cliff effects guidance prototype (archived)
https://codeforboston.github.io/cliff-effects/#/
MIT License
30 stars 64 forks source link

Some accessibility items #816

Open knod opened 6 years ago

knod commented 6 years ago

Some accessibility items that need addressing. For standard keyboard interaction, see https://webaim.org/techniques/keyboard/.

knod commented 6 years ago

I'm doing some work on the focus visibility part. Either this issue can be for multiple people, or we can break it into individual issues (possibly as folks come along and are interested in moving it forward).

dylanesque commented 6 years ago

I'll start looking for contrast issues and knock those out.

knod commented 6 years ago

Do labels need to have a for attribute that'll connect them to their ui element in order to be read properly by a screen reader?

dylanesque commented 6 years ago

Do labels need to have a for attribute that'll connect them to their ui element in order to be read properly by a screen reader?

"Whenever possible, use the label element to associate text with form elements explicitly. The for attribute of the label must exactly match the id of the form control.", from the W3C Accessibility Tutorial, so yes, we absolutely should be using the for attribute.

https://www.w3.org/WAI/tutorials/forms/labels/

knod commented 6 years ago

Awesome! Thanks @dylanesque !