Problem/Motivation
When @cboyden's team did an assistive tech walkthrough of Media Library for #2834729: [META] Roadmap to stabilize Media Library using NVDA on Firefox, we discovered that a screenreader user experiences a confusing DOM after adding files through the media library modal and returning to the node form.
What is good:
After closing the modal, we return the users to the add media button that they used to load the media.
What isn't good:
If the screenreader user wants to go through what they already added, review, and/or consider removing items, they have to know to tab backwards instead of forwards, which isn't what they would naturally think to do.
This interaction can be viewed on the video recording of the September 29, 2019 walkthrough of Media Library at around minute 30.
Proposed resolution
There are a couple of possible approaches to this:
- (preferred) Adjust the DOM so that the add media button is above the list of added media
- (risky because can introduce new problems) Adjust tabindex so that the list of media items is below the button
Option 1 above means a change to the user interface, as the list of added items would appear below the add button instead of above. I've tagged Usability because this does have overall UX implications, since it is different from the standard patterns in the overall experience.
Remaining tasks
- Select the preferred resolution and implement.
User interface changes
Potential impact if the DOM is changed.
API changes
None anticipated.
Data model changes
None anticipated.
Release notes snippet
TBD
Comments
Comment #2
rainbreaw commentedComment #3
phenaproximaThis is somewhat mitigated by the fact that, as of #3087456: Move some representational classes in Media Library to Classy and others to Seven and/or Claro, as appropriate, the media library widget's layout can be overridden by themes. This means that sites can move the button wherever they want, if desired.