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

Prevent Ink from altering the accessibility tree #64

Merged
merged 1 commit into from
Sep 15, 2022

Conversation

Chudesnov
Copy link
Contributor

When rendered inside a <button>, canvas element produces an unintended side-effect in Chrome, changing the announced role of the button to "button, group". Adding aria-hidden="true" effectively hides the canvas element from assistive software such as screen readers, so the role of the button is correctly announced as just "button".

When rendered inside a `<button>`, canvas element produces an unintended side-effect in Chrome, changing the announced role of the button to "button, group". Adding `aria-hidden="true"` effectively hides the canvas element from assistive software such as screen readers, so the role of the button is correctly announced as just "button".
Copy link
Contributor

@nhunzaker nhunzaker left a comment

Choose a reason for hiding this comment

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

Nice, 👍🏻. @cwmanning 🙏🏻 for one more release?

@cwmanning cwmanning merged commit 31ec086 into vigetlabs:master Sep 15, 2022
@cwmanning
Copy link
Member

👍 published in 6.5.3

@Chudesnov
Copy link
Contributor Author

Chudesnov commented May 11, 2023

@cwmanning I've just realized that even though the changes are merged and 6.5.3 is published, dist/ink.js still doesn't contain the changes and is identical to 6.5.2. Could you re-build and publish another patch version?

see https://unpkg.com/react-ink@6.5.2/dist/ink.js, https://unpkg.com/react-ink@6.5.3/dist/ink.js

@cwmanning
Copy link
Member

Sorry for the mix up! Published as 6.5.4. Confirmed the addition is now in dist/ink.js.

@Chudesnov
Copy link
Contributor Author

Thank you @cwmanning!

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.

4 participants