[wp-trac] [WordPress Trac] #50273: Media modal uses incorrect 'checkbox' role for list items

WordPress Trac noreply at wordpress.org
Fri May 29 14:00:24 UTC 2020


#50273: Media modal uses incorrect 'checkbox' role for list items
--------------------------+------------------------------
 Reporter:  talldanwp     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  accessibility
--------------------------+------------------------------

Comment (by afercia):

 Thanks for reporting @talldanwp.

 This is a known issue, together with several other, long standing,
 accessibility issues in the media views. The checkbox role is essential to
 make the JavaScript related to attachments selection work, especially when
 using assistive technologies. It is true it overrides the list item native
 semantics, and it worked this way since... forever.

 Ideally, the media grid should not have a `list` semantics to start with.
 Actually, it's a grid with a JS-managed "spacial" navigation, meaning that
 Up/Right/Down/Left arrow keys allow to navigate the attachments in any
 direction. A list wouldn't convey this interaction model. The roles grid /
 gridcell would be more appropriate, but I'm not sure about their actual
 assistive technologies support.

 Will discuss with the accessibility team.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50273#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list