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

fix(text, shape): Hide generated text element from assistive technologies #1551

Merged
merged 1 commit into from
Aug 3, 2022

Conversation

thomashoggard
Copy link
Contributor

@thomashoggard thomashoggard commented Aug 3, 2022

Fixes: #1544

Currently the generated svg used to calculate text and shape size are being read by assitive technologies like screen readers. This PR hides the generated element so it's now hidden for both screen reader and visual users.

I tested using the demo app and verified the attribute was being added within Chrome dev tools.
image

@thomashoggard thomashoggard changed the title fix(text, shape): Hide generated text element from assitive technologies fix(text, shape): Hide generated text element from assistive technologies Aug 3, 2022
Copy link
Collaborator

@williaster williaster left a comment

Choose a reason for hiding this comment

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

lgtm, thanks so much @thomashoggard for the bug report and fix! 🙏

will get it merged/released once CI finishes.

@williaster williaster merged commit a027ca6 into airbnb:master Aug 3, 2022
@github-actions
Copy link

github-actions bot commented Aug 3, 2022

🎉 This PR is included in version v2.12.2 of the packages modified 🎉

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.

bug(text, shape): measurement utils create svgs that screen readers can see
2 participants