You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ca01d2f
Browse filesBrowse the repository at this point in the historyBrowse files
Media: Fix ARIA labelling and list semantics in the media views.
The media modal labelled itself with a fixed `media-frame-title` ID that
was set on the frame's heading container. In the Media Library grid that
ID is claimed by the manage frame's empty heading, so the Edit attachment
dialog had no accessible name, and any page that opened more than one
media frame ended up with duplicate IDs.
Generate the ID on the modal instance, set it directly on the frame's H1
heading, and reference it from the dialog element.
Also set `role="group"` on the attachments list. Its `li` children carry
`role="checkbox"`, and ARIA in HTML only allows that if the role of the
list itself is changed as well.
Fixes #66025.
0 commit comments