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

no-aria-label should ignore decorative SVG with aria-hidden=true #472

Closed
wants to merge 6 commits into from

Conversation

PhilippeVay
Copy link
Contributor

@PhilippeVay PhilippeVay commented Jul 29, 2023

Messed up by PR fork/main against main and then beginning a 2nd PR. Closing this one and doing it again, twice the fun! (sorry)

Closes #387

An SVG with aria-hidden=true is decorative, no need to check for aria-label or aria-labelledby.

Done:

1. in errors.scss rule no-aria-label, adding :not([aria-hidden=true]) to each selector
2. re-build CSS files
3. update documentation

Proposed new description is:

[role=img] without [aria-hidden=true] should either have [aria-label] or [aria-labelledby].
If image is decorative, please use [role=presentation] instead.

@netlify
Copy link

netlify bot commented Jul 29, 2023

Deploy Preview for a11ycss ready!

Name Link
🔨 Latest commit c47787a
🔍 Latest deploy log https://app.netlify.com/sites/a11ycss/deploys/64c819ac2af5c60008cfbe26
😎 Deploy Preview https://deploy-preview-472--a11ycss.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

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 this pull request may close these issues.

[question] inline svg with role="img" and aria-hidden
1 participant