sul-dlss-deprecated / universalviewer

The Universal Viewer is a community-developed open source project on a mission to help you share your content with the world
http://universalviewer.io
Other
0 stars 1 forks source link

WAVE & other accessibility audits show several errors #25

Open jvine opened 6 years ago

jvine commented 6 years ago
jvine commented 6 years ago

http://wave.webaim.org/extension/ https://addons.mozilla.org/en-US/firefox/addon/fangs-screen-reader-emulator/ and Chrome > Inspect > Audits

mejackreed commented 6 years ago

Note: likely empty labels will be difficult to address in this first round

edsilv commented 6 years ago

Should we make all of the modal dialouges use h2 instead of h1?

Do you want to remove link titles entirely?

Two of the example focusable elements do not have a tabindex? Perhaps it needs to be set to -1?

jvine commented 6 years ago

Trying to refresh my memory on some of these things...

Should we make all of the modal dialouges use h2 instead of h1?

The reporting tools show all the h1s in the HTML, including those that are within display: none; divs, so it's a bit misleading. It probably makes sense for the dialogues to use h2, but I can't see that there's an h1 for the embed as a whole; and in practice there should not be any empty h1s. This is what the outline looks like in WAVE:

uv-wave-outline

Do you want to remove link titles entirely?

Yes.

Two of the example focusable elements do not have a tabindex? Perhaps it needs to be set to -1?

<a> elements are focusable by default. In general, the tab order should just follow the visual order of the elements on the screen - let the browser handle it. Only elements that aren't focusable by default (like divs) need tabindex="0" to insert them into the default order. Not sure why these specific elements are focusable when they're not visible - how are they hidden? When/how do they become visible? I mean, tabindex="-1" might work, but I'm not sure it's the best answer.