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

Add aria hidden true to svgs in tooltips #1555

Merged
merged 3 commits into from
Oct 17, 2022

Conversation

MewenLeHo
Copy link
Contributor

@MewenLeHo MewenLeHo commented Oct 14, 2022

Related issues

Closes #1554

Description

SVGs in tooltips do not carry any specific information so they should not be readable by screen reader so we should add 'aria-hidden=true'
In addition, replace the missing 'focusable=false' on the first svg (seen with @Aniort)

Motivation & Context

Accessibility improvement for tooltips.

Types of change

  • New feature (non-breaking change which adds functionality)

Live previews

Checklist

  • I have read the contributing guidelines
  • My code follows the code style of the project (using npm run lint)
  • My change introduces changes to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

@netlify
Copy link

netlify bot commented Oct 14, 2022

Deploy Preview for boosted ready!

Name Link
🔨 Latest commit 0cbc12e
🔍 Latest deploy log https://app.netlify.com/sites/boosted/deploys/634d26d2a1ff520009d6a84e
😎 Deploy Preview https://deploy-preview-1555--boosted.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 settings.

@Aniort Aniort self-requested a review October 17, 2022 09:52
Copy link
Contributor

@Aniort Aniort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, go !

@sonarcloud
Copy link

sonarcloud bot commented Oct 17, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Member

@julien-deramond julien-deramond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! You can create a PR for Bootstrap in the same spirit to fix the SVG example in https://getbootstrap.com/docs/5.2/components/tooltips/#directions.

@julien-deramond julien-deramond merged commit 0a10af0 into main Oct 17, 2022
@julien-deramond julien-deramond deleted the main-mlh-add-aria-hidden-to-svgs-in-tooltips branch October 17, 2022 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add aria-hidden to SVGs in tooltips
3 participants