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

SVG placeholders accessibility #31575

Merged
merged 2 commits into from
Sep 4, 2020
Merged

SVG placeholders accessibility #31575

merged 2 commits into from
Sep 4, 2020

Conversation

ffoodd
Copy link
Member

@ffoodd ffoodd commented Sep 2, 2020

Our shortcode currently generates SVGs with role="img" without any alternate text when no title nor text is used–which is flagged by aXe (and my very own a11y.css) as an error.

This PR ensure to set role="img" only if we have either text or title, and aria-hidden="true" otherwise.

@XhmikosR XhmikosR added this to Inbox in v5.0.0-alpha2 via automation Sep 4, 2020
@XhmikosR XhmikosR merged commit 5b37d03 into main Sep 4, 2020
v5.0.0-alpha2 automation moved this from Inbox to Shipped Sep 4, 2020
@XhmikosR XhmikosR deleted the main-fod-docs-svg-placeholder branch September 4, 2020 17:21
olsza pushed a commit to olsza/bootstrap that referenced this pull request Oct 3, 2020
…VG placeholders (twbs#31575)

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v5.0.0-alpha2
  
Shipped
Development

Successfully merging this pull request may close these issues.

None yet

3 participants