Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elements must use only ARIA attributes allowed for their ARIA role. #199

Closed
mgifford opened this issue Nov 23, 2021 · 4 comments · Fixed by #282
Closed

Elements must use only ARIA attributes allowed for their ARIA role. #199

mgifford opened this issue Nov 23, 2021 · 4 comments · Fixed by #282

Comments

@mgifford
Copy link
Contributor

There are 21 instances of this error on this page - https://www.section508.gov/create/accessible-meetings/

This is a WCAG 4.1.2 issue based on an Accessibility Insights review.

Similar "(link is external)" link here:
https://www.section508.gov/training-home/

And with similar "(link is external)" links here:
https://www.section508.gov/contact-us/

Title: WCAG 4.1.2: Ensures ARIA attributes are allowed for an element's role (span[aria-label="(link\ is\ external)"])
Tags: Accessibility, WCAG 4.1.2, aria-allowed-attr

Issue: Ensures ARIA attributes are allowed for an element's role (aria-allowed-attr - https://accessibilityinsights.io/info-examples/web/aria-allowed-attr)

Target application: Create Accessible Meetings | Section508.gov - https://www.section508.gov/create/accessible-meetings/

Element path: ul:nth-child(12) > li[dir="ltr"]:nth-child(3) > .ext > span[aria-label="(link\ is\ external)"]

Snippet: <span class="ext" aria-label="(link is external)"></span>

How to fix:
Fix all of the following:
ARIA attribute cannot be used, add a role attribute or use a different element: aria-label

Environment: Chrome version 94.0.4606.61

====

This accessibility issue was found using Accessibility Insights for Web 2.29.0 (axe-core 4.3.2), a tool that helps find and fix accessibility issues. Get more information & download this tool at http://aka.ms/AccessibilityInsights.

@drewnielson
Copy link
Contributor

drewnielson commented Nov 23, 2021 via email

@mgifford
Copy link
Contributor Author

mgifford commented Nov 29, 2021 via email

@drewnielson
Copy link
Contributor

drewnielson commented Nov 29, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants