[wp-trac] [WordPress Trac] #63984: Assess if the tabpanels in the media modals should receive focus

WordPress Trac noreply at wordpress.org
Sat Feb 7 19:24:24 UTC 2026


#63984: Assess if the tabpanels in the media modals should receive focus
-------------------------+----------------------------
 Reporter:  alh0319      |       Owner:  joedolson
     Type:  enhancement  |      Status:  accepted
 Priority:  normal       |   Milestone:  7.0
Component:  Media        |     Version:  5.3
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  accessibility
-------------------------+----------------------------

Comment (by joedolson):

 The APG recommendation for a tabpanel is to have `tabindex="0"` if the
 first element in the panel is not focusable.

 In both views of the media panel, that's true: either an h2 heading with
 'Filter media', or the text 'Drop files to upload'. However, for screen
 reader usage (where this is most relevant), the drop region information is
 largely irrelevant; and the heading context is pretty well handled by the
 labels on the filter regions.

 Given that, I think it may be worthwhile to remove the tabindex. It means
 sacrificing immediate access to the first content in favor of lower
 verbosity in screen readers, but I don't think that loss is significant.

 @alh0319 - would you agree with this assessment?

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


More information about the wp-trac mailing list