[wp-trac] [WordPress Trac] #42002: Improve the accordions accessibility

WordPress Trac noreply at wordpress.org
Tue May 7 15:33:16 UTC 2024


#42002: Improve the accordions accessibility
-------------------------------------------------+-------------------------
 Reporter:  afercia                              |       Owner:  joedolson
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  6.6
Component:  Administration                       |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-screenshots has-patch needs-     |     Focuses:  ui,
  testing changes-requested                      |  accessibility
-------------------------------------------------+-------------------------

Comment (by joedolson):

 Let's move the event trigger from `.accordion-section-title` to the
 button; that will allows us to remove the extraneous `tabindex`
 attributes, and will make the keyboard handling more standard.

 It should also allow us to remove the `keydown` event handler from
 `accordion.js`, since the button will pass events natively.

 Be sure to also check accordions in the Customizer and in the Site Health
 UI to make sure everything is consistent across those features.

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


More information about the wp-trac mailing list