Problem/Motivation
The media library field widget has not had an accessibility review yet, and accessibility issues are stable-blocking.
Proposed resolution
Review the media library field widget, and make it as accessible as we possible can. :-)
Remaining tasks
Use child issues as for these, to help separate quick-wins from complex problems, and help triage.
Child issues should be added as must/should/could in #2834729: [META] Roadmap to stabilize Media Library, especially important if they are must haves.
Todo after the module becomes stable
- #2981044: Unify the grid/table views of the media library. IMPORTANT. This one has special handling for the accessibility gate where we mark a stable module with a level-A WCAG focus order failure. See comment #126 in this issue, and comments #64-65 in the child issue.
- #3035994: Add a Media Library views template to Seven theme to change to order of the views header and exposed filters is the follow-up to address the focus order failure.
Should-have
- #3081526: Add announcement after clicking 'Save and select' in the media library.
- #3081523: Improve the focus behaviour after clicking 'Save and select' in the media library.
- When reviewing the library - if the image thumbnails do not load, the window cuts off the text making it impossible to read the file name. See comments #6-7. (this may have been fixed in #3062375: Media library item loses focus when hovering over item's title, if not an issue should be opened with steps to reproduce. Simply removing the image file did not cause the problem to happen but perhaps it has something to do with the filename length or another relevant variable.)
- Order of the checkbox and filename is wrong in the grid view
- After adding a new media item the number of selected files is wrong, I've added a file and still it seems nothing is selected #3034243: Improve selection text in Media Library
Could-have
- When clicking the ‘Add media’ in the widget it doesn’t tell you that the dialog is loading #2973140: Convey AJAX progress messages to assistive technology.
- Dialog buttons are twice in the page. #3037781: Accessibility problem with invisible buttons in AJAX dialogs
- After clicking the hide/show weights link I am not sure what happened #3035435: Make the show/hide row weights button more informative for assistive tech users..
Needs triage
TODO: Double-check the list of issues from comment #18 at #3020716-18: Add vertical tabs style menu to media library to confirm which have been addressed. Any which are still an issue should be brought here.
- When using a screen reader it only tells you the image file name and not the image title. It may be beneficial to include the visually hidden title of the image in addition to the file name to create a stronger user experience. Comments #5 and #29. Maybe a general usability issue rather than accessibility?
Done!
- #3035408: Identify purpose of vertical tabs in MediaLibraryWidget dialog for assistive tech users..
- #3016807: Improve refocus on submit buttons of Media Library Widget modals
- #3023797: Let users choose what to do after selecting and/or adding items in the media library
- #3023801: Allow newly uploaded files to be deleted from the media library without saving them
- #3033943: MediaLibraryWidget selected items count is not conveyed to assistive tech correctly
- #3035316: ‘Add media’ in MediaLibraryWidget should be a button, not a link
- #3035446: Inform assistive tech users about the outcome of using the MediaLibraryWidget dialog
- #3024184: Make the tabbing order match the visual reading order in MediaLibraryWidget
- #3035316: ‘Add media’ in MediaLibraryWidget should be a button, not a link
- #3035434: Improve name of MediaLibraryWidget dialog
- #3039829: Remove link to media item from media library view.
- #3035331: Improve keyboard focus behaviour of vertical tabs in MediaLibraryWidget
User interface changes
Lots of little improvements, many of which will be not be visual. See the child issues for details.
Major visual design changes should be noted here.
API changes
None so far.
Data model changes
None so far.
| Comment | File | Size | Author |
|---|---|---|---|
| #62 | Screenshot at 2019-10-30 16-08-41.png | 63.89 KB | gayathri j |
| #59 | missing-thumbnail-widget.png | 87.89 KB | bnjmnm |
| #59 | missing-thumbnail-nodeform.png | 75.37 KB | bnjmnm |
| #9 | Screen Shot 2018-08-18 at 4.00.43 PM.png | 234.56 KB | dbungard |
| #7 | Screen Shot 2018-08-18 at 3.49.44 PM.png | 12.6 KB | dbungard |
Comments
Comment #2
phenaproximaBlocker is in!
Comment #3
phenaproximaComment #4
phenaproximaComment #5
dbungard commentedWhen using a screen reader it only tells you the image file name and not the image title. It may be beneficial to include the visually hidden title of the image in addition to the file name to create a stronger user experience.
Comment #6
dbungard commentedWhen reviewing the library - if the image thumbnails do not load, the window cuts off the text making it impossible to read the file name.
Comment #7
dbungard commentedComment #8
phenaproximaComment #9
dbungard commentedWhen using a screen reader, if you remove an image it says "button dimmed" and does not alert the user that the image has been removed.
Comment #10
andrewmacpherson commentedNice reviews Donna.
#9 - Good catch! We do need to provide feedback about the outcome of pressing the remove button. Tell the user which media item was removed. Also need to convey the outcome of adding media with the dialog. Maybe this can make use of #3020352: Create a new AnnounceCommand to call Drupal.announce on an AjaxResponse?
I noticed when opening a dialog, the focus doesn't move to the dialog. It needs to move to the dialog, otherwise the dialog isn't announced, and can't be dismissed with the escape key. Similar problem to #2805219: Some dialogs do not receive focus when opened?
Elsewhere, I filed an issue about confusing visual tabbing order - #3024184: Make the tabbing order match the visual reading order in MediaLibraryWidget.
Remember to tag issues. I didn't find this one until after updating the triage in the parent roadmap issue.
Bumping this to major based on what we've found so far.
Comment #11
andrewmacpherson commentedI noticed the #3020716: Add vertical tabs style menu to media library, which wasn't tagged for accessibility. This issue introduces a brand-new vertical tabs implementation, and a dynamic message about the number of selected items. Many accessiblity issues need addressing here, and I've commented there about accessibilty aspects.
Comment #12
seanbJust did some testing using VoiceOver. This is the list if things I found, dropping this here to make sure it doesn't get lost. Most of the issues can be fixed in the media library, some of these are issues we inherited from other places in core.
A. Media library specific issues:
B. Inherited core issues:
It would be nice to get some feedback on this initial list. Not sure if all of these are actually issues, nor do I have a solution for everything. I'm far from specialized in accessibility but definitely trying to learn.
Once we have a clear list of the actual problems and how to fix them we can start opening issues.
Comment #13
seanbCreated issues for the things I found. Still todo:
Comment #14
andrewmacpherson commentedCan you please use more specific child issues? If there are 10 problems, use 10 child issues. There's a bit more admin overhead there but it will make reviewing this much easier, when we have to (a) triage must/should/could, and (b) assess whether the module passes the accessiblility gate.
Also, using separate child issues makes it easier to finish the quick wins, or identify novice tasks for contributors who would like to get involved in accessibility issues.
Remember to add the accessibility tag on the child issues.
Comment #15
andrewmacpherson commented#12.A.12 has two related issues in it. Which one is the implementation to fix it? That's what I mean by accessibility reviewers getting lost.
Comment #16
andrewmacpherson commentedComment #17
andrewmacpherson commentedComment #18
andrewmacpherson commentedCopied the points from #12 to the issue summary.
Comment #19
andrewmacpherson commented#12.B.2
This is conflating two issues which are already mentioned.
Updating IS about this.
Comment #20
andrewmacpherson commentedFixing issue shortcodes
Comment #21
andrewmacpherson commentedComment #22
andrewmacpherson commentedComment #23
andrewmacpherson commentedSeparated child issues for these, from #12.A.3 and #12.A.4
Comment #24
andrewmacpherson commented@seanb
I haven't encountered this in my screen reader testing. Can you clarify what you mean by "every time the user navigates in the dialog"?
Comment #25
andrewmacpherson commentedI noticed this too. Bizarrely it has
pointer-events:noneon AND a click handler. Keyboard users and speech control users can operate it though, and it triggers an "Unsaved changes to the form will be lost. Are you sure you want to leave?" dialog.Is what is the purpose of the link? It seems as if you don't want anyone to use it. If that's the case, remove the link.
Comment #26
andrewmacpherson commentedI've started to break up #3035316: ‘Add media’ in MediaLibraryWidget should be a button, not a link into separate issues.
Comment #27
andrewmacpherson commentedI think we can treat #3016807: Improve refocus on submit buttons of Media Library Widget modals as the issue for "After selecting items from the library the focus shifts to the save button of the parent form. I would expect to be back in the widget to verify my selection". There's already plenty analysis there.
Comment #28
andrewmacpherson commentedThese two are the effectively same, noted differently in #10 and #12.
I've combined them an filed #3035446: Inform assistive tech users about the outcome of using the MediaLibraryWidget dialog as the implementation issue.
I've finished splitting up these into child issues now. That leaves #3035316: ‘Add media’ in MediaLibraryWidget should be a button, not a link as re-scoped as for the button/link semantics.
Comment #29
andrewmacpherson commentedAdding #5 to the issue summary, so it isn't lost.
I think that's down to the fact that when media entities are created, the entity title is auto-populated from the file name (or in the case of remote video, from the youtube/vimeo name). The actual entity title field is hidden from the entity form. Having said that, image media items have an alt text field.
The experience here rather depends on content editors giving their files sensible names before uploading them. I have a rather pessimistic view about content editors in that regard :-) If there are any improvements to be made here, it probably falls under the general usability topic rather than accessibility.
Comment #30
andrewmacpherson commentedMoved #3035435: Make the show/hide row weights button more informative for assistive tech users. to the inherited core issues section. The issue applies to the equally to the "show row weights" in our tabledrag. Since the tabledrag is already used for most multivalue fields, it will be good to address those together in a holistic way, and avoid inconsistency.
Comment #31
andrewmacpherson commentedAdding #6 to the issue summary so it doesn't get lost.
Comment #32
andrewmacpherson commentedAdding details from #9 to the issue summary.
I couldn't replicate it the "button dimmed" in other screen readers though. It could do with steps to reproduce, and more investigation.
Comment #33
andrewmacpherson commentedIt would be good to double-check the list of issues from comment #18 at #3020716-18: Add vertical tabs style menu to media library to confirm which have been addressed. I was in some confusion about that last week. Anything left over from that can be noted here.
Comment #34
andrewmacpherson commentedComment #35
andrewmacpherson commentedComment #36
andrewmacpherson commentedtriage #3035316: ‘Add media’ in MediaLibraryWidget should be a button, not a link as a should have, added to parent.
I haven't started sorting the list here yet, the main Media Library roadmap is the canonical triage priority.
Comment #37
andrewmacpherson commenteda11y triage - must-have #3016807: Improve refocus on submit buttons of Media Library Widget modals
Comment #38
tim.plunkettFixing tag
Comment #39
andrewmacpherson commentedStarting a must/should/could triage.
Comment #40
andrewmacpherson commentedlooked through must-haves on parent road map, found some must-haves there now have needs a11y review
Comment #41
andrewmacpherson commentedtriaged a big batch, quite a lot classed as should/could have
Comment #42
andrewmacpherson commentedThis one is a known compromise. I filed #3037781: Accessibility problem with invisible buttons in AJAX dialogs to see if we can improve on it. Not a blocker for media library.
.
Comment #44
seanbCreated a new issue #3039829: Remove link to media item from media library view. for
Comment #45
wim leers#2805219: Some dialogs do not receive focus when opened was listed here, but is no longer relevant, since #3035446: Inform assistive tech users about the outcome of using the MediaLibraryWidget dialog fixed it — confirmed by @seanB in #2805219-21: Some dialogs do not receive focus when opened.
Comment #46
phenaproximaMoved many completed issues to the "Done" column.
Comment #47
phenaproximaAdding #3041111: Items selected from the media library cannot be reordered by weight as a should-have.
Comment #48
phenaproximaUpon further discussion with @xjm and @seanB, upgrading #3041111: Items selected from the media library cannot be reordered by weight to a must-have. We can downgrade it later if the accessibility maintainers agree.
Comment #49
phenaproximaReplaced #3041111: Items selected from the media library cannot be reordered by weight (now closed as a duplicate) with #3039829: Remove link to media item from media library view. in the must-have list.
Comment #50
phenaproxima#3035408: Identify purpose of vertical tabs in MediaLibraryWidget dialog for assistive tech users. has landed!
Comment #51
phenaproximaRemoving #2113931: File Field design update: Upload field. from the IS, since it has been de-scoped in the parent roadmap.
Comment #52
seanbComment #53
rainbreaw commentedUnder Should have,
It looks like this has been resolved by adding the filename into the announcement of the checkbox, and perhaps can be removed from the list?
Comment #54
rainbreaw commentedReviewing the triage list:
Comment #55
seanbSome of the issues have indeed been fixed. Updating the IS.
Is fixed in #3035446: Inform assistive tech users about the outcome of using the MediaLibraryWidget dialog
We still have #3035331: Improve keyboard focus behaviour of vertical tabs in MediaLibraryWidget but I think that is the last one.
This has been improved in #3033943: MediaLibraryWidget selected items count is not conveyed to assistive tech correctly
Created #3081526: Add announcement after clicking 'Save and select' in the media library.. Still need to be triaged.
Just looked at the code for now, but I can't remember us changing anything that should have fixed this. It also seems to conflict with: After adding a new media item the focus shift to the dialog instead of the form of the added media item. Merged those 2 things in new issue #3081523: Improve the focus behaviour after clicking 'Save and select' in the media library., still need to be triaged.
Comment #56
xjmI think we're nearing a point where we can flatten this onto the main meta!
I made these two issues "should-haves" based on @rainbreaw's reviews here and there:
That leaves these
twothree other issues that might still need to be filed:Comment #57
xjmComment #58
bnjmnmComment #59
bnjmnmI tried reproducing #6/#7 with the intent of creating an issue, but I could not reproduce the symptoms. It's quite possible this has been addressed in the year since it was reported, but I didn't want to remove it from the issue summary (in "Should-have") as I may have an incorrect understanding.

This is what I see in the media library widget dialog:
This is what I see in the media library field in the node form:

Comment #60
bnjmnmComment #62
gayathri j commentedWhen reviewing the media library, close icon is coming in node form, if u click close icon it automatically deleted i think may be we can provide alert the user that the image has been removed.

Comment #63
xjmThanks @J.Gayathri! Could you file a dedicated issue for that accessibility bug?
Ideally (if it's alright with the accessibility maintainers) I would like to close this issue and track all the accessibility work that's needed still on the main roadmap. (That way we don't have to check for issues in two places.)
Comment #64
andrewmacpherson commented#62: There is already a message conveyed to screen reader users, when the item is removed. Do you mean a visible message?
#63: Some stuff is still marked needs triage. IIRC there was an early issue about the tabs in the dialog, but I'm not sure if all issues there got follow-ups. We can close this plan after checking that one.
Comment #67
phenaproximaMedia Library is now a stable core module and has been since Drupal 8.8. I think it's therefore time to close out this meta in favor of a consolidated #2825215: Media initiative: Roadmap, which is part of the Easy Out of the Box Initiative. I've moved the outstanding issues from this one's summary over to that meta.