kazzkiq/balloon.css

Accessibility issue due to aria-label

Open

#146 opened on Sep 20, 2020

View on GitHub
 (5 comments) (0 reactions) (0 assignees)CSS (5,029 stars) (441 forks)batch import
accessibilityhelp wanted

Description

Adding aria-label does announce it to screen readers but the container element on which the tooltip is shown, the text of that button for example won't be announced as shown in https://kazzkiq.github.io/balloon.css/ the text Hover me is not announced since the aria-label now just has the tooltip text which is an accessibility issue.

ideally, first, the button content should be announced and then the tooltip content.

For the accessibility, role tooltip should be added to the tooltip so screen readers announce it as tooltip but since it uses pseudo-element so won't be possible.

Contributor guide