You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<a href="practices/landmark-regions/" aria-label="View landmarks guide" class="button-link">
Learn More
</a>
The accName is "View landmarks guide" but the visible link text is "Learn More".
Identified by Meagan Eller in the a11y Slack channel.
Editing to note that those opening code blocks are XPath searches you can do to find all the nodes in the DOM view of your browser dev tools. More info if anyone reading this is new to it: XPath for In-Browser Testing
The text was updated successfully, but these errors were encountered:
aardrian
changed the title
"Learn mMore" links are 2.5.3 errors
"Learn More" links are WCAG 2.1 SC 2.5.3 violations
May 20, 2022
Oops. I filtered for issues since launch. It did not occur to me to look for an issue for a 2.5.3 violation filed prior to launch. I guess I figured a WAI site would not launch with known WCAG violations.
There are 8 "Learn More" links on the home page at https://www.w3.org/WAI/ARIA/apg/:
//a[contains(text(),"Learn More")]
Each has an
aria-label
that differs from the visible text://a[contains(text(),"Learn More")][@aria-label]
These violate SC 2.5.3: Label in Name.
Example:
The accName is "View landmarks guide" but the visible link text is "Learn More".
Identified by Meagan Eller in the a11y Slack channel.
Editing to note that those opening code blocks are XPath searches you can do to find all the nodes in the DOM view of your browser dev tools. More info if anyone reading this is new to it: XPath for In-Browser Testing
The text was updated successfully, but these errors were encountered: