[wp-trac] [WordPress Trac] #47051: Twenty Nineteen theme sub-menu returns error in WAVE accessibility tool
WordPress Trac
noreply at wordpress.org
Fri Apr 26 16:21:38 UTC 2019
#47051: Twenty Nineteen theme sub-menu returns error in WAVE accessibility tool
---------------------------+-----------------------------
Reporter: johnfclifford | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 5.1.1
Severity: minor | Keywords:
Focuses: accessibility |
---------------------------+-----------------------------
I'm building a site in (a child theme of) Twenty Nineteen. In the top
menu, each instance of a menu item that has a child item is returning one
error in the WAVE accessibility tool. The reported error is "empty button"
and below is the explanation:
What It Means
A button is empty or has no value text.
Why It Matters
When navigating to a button, descriptive text must be presented to screen
reader users to indicate the function of the button.
How to Fix It
Place text content within the <button> element or give the <input> element
a value attribute.
The Algorithm... in English
A <button> element is present that contains no text content (or
alternative text), or an <input type="submit">, <input type="button">, or
<input type="reset"> has an empty or missing value attribute.
Standards and Guidelines
1.1.1 Non-text Content (Level A)
2.4.4 Link Purpose (In Context) (Level A)
This is the HTML that is returning the alleged error:
<button class="menu-item-link-return" tabindex="-1"><svg class="svg-icon"
width="24" height="24" aria-hidden="true" role="img" focusable="false"
viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M15.41 7.41L14 6l-6 6
6 6 1.41-1.41L10.83 12z"></path><path d="M0 0h24v24H0z"
fill="none"></path></svg>About us</button>
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47051>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list