[wp-trac] [WordPress Trac] #43095: Audit the usage of `aria-haspopup` in the admin menu

WordPress Trac noreply at wordpress.org
Thu Jun 20 19:31:18 UTC 2024


#43095: Audit the usage of `aria-haspopup` in the admin menu
----------------------------------------------+----------------------------
 Reporter:  afercia                           |       Owner:  joedolson
     Type:  defect (bug)                      |      Status:  accepted
 Priority:  normal                            |   Milestone:  6.6
Component:  Administration                    |     Version:
 Severity:  normal                            |  Resolution:
 Keywords:  has-patch has-screenshots commit  |     Focuses:  ui,
                                              |  accessibility
----------------------------------------------+----------------------------
Changes (by joedolson):

 * keywords:  has-patch has-screenshots reviewing => has-patch has-
     screenshots commit


Comment:

 Testing:

 - Verify that there is a `data-ariahaspopup` attribute, no `aria-haspopup`
 attribute, and no `aria-expanded` attribute in desktop view.
 - Verify that the `aria-haspopup` attribute and the `aria-expanded`
 attribute are added in responsive view.
 - Verify that the `aria-haspopup` attribute shows up on links with
 submenus that are *not* the current section.
 - Verify that the `aria-expanded` attribute defaults to 'false', and
 toggles to 'true' when expanded.

 I've confirmed all of these in my testing.

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


More information about the wp-trac mailing list