Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #58098


Ignore:
Timestamp:
04/06/2023 06:23:44 PM (23 months ago)
Author:
sabernhardt
Comment:

Related: #13273

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58098

    • Property Focuses accessibility added
    • Property Version changed from 6.2 to
  • Ticket #58098 – Description

    initial v1  
    1 For accessibility, an empty top-level menu item should have role="button" added to the custom link.
     1For accessibility, an empty top-level menu item should have `role="button"` added to the custom link.
    22
    33When setting up a menu with a top-level menu item with a custom link that is blank or to an anchor, the output looks like:
    4 <a>Top Menu Item</a> or <a href="#">Top Menu Item</a>
     4`<a>Top Menu Item</a>` or `<a href="#">Top Menu Item</a>`
    55
    6 It should have role=button added when that is the case:
    7 <a role="button">Top Menu Item</a> or <a href="#" role="button">Top Menu Item</a>
     6It should have `role=button` added when that is the case:
     7`<a role="button">Top Menu Item</a>` or `<a href="#" role="button">Top Menu Item</a>`