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

Set and remove element aria-describedby base on popper #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tuanthieu2993
Copy link
Contributor

@tuanthieu2993 tuanthieu2993 commented Oct 2, 2018

Summary

To fix aria attribute do not have valid value, issue: https://github.com/tvkhoa/react-tippy/issues/89

As describedby need to point to a valid id, that means id that exists, while current implementation set it from beginning and keep it there even when the popper is hidden - removed from DOM.

This update will help solve issue as we only set it when show and remove when hide the popper

Screenshots

When page is init with tooltipped elements
image

When popper is shown
image

When popper is hidden
image

To fix aria attribute do not have valid value, issue: https://github.com/tvkhoa/react-tippy/issues/89

As describedby need to point to a valid id, that means id that exists, while current implementation set it from beginning and keep it there even when the popper is hidden - removed from DOM.

This update will help solve issue as we only set it when show and remove when hide the popper
@carlosparreno
Copy link

carlosparreno commented May 22, 2019

Hi @tvkhoa, this fix was approved. Will this be merged and released soon? Thanks!

@kjchiu
Copy link

kjchiu commented Jun 25, 2019

bueller? This is breaking aXe tests and I'd like to re-enable them

@EmaSuriano
Copy link

Hello guys, I recommend switching to https://github.com/atomiks/tippy.js-react It's the official package and it's totally a11y compliance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants