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

paper-tooltip does not automatically add a 'describedby' #120

Open
lukeschaefer opened this issue Oct 23, 2017 · 0 comments
Open

paper-tooltip does not automatically add a 'describedby' #120

lukeschaefer opened this issue Oct 23, 2017 · 0 comments

Comments

@lukeschaefer
Copy link

lukeschaefer commented Oct 23, 2017

The aria spec recommends that "elements with the role tooltip are referenced through the use of aria-describedby before or at the time the tooltip is displayed."

The Google Chrome a11y dev tools test suite has a rule for enforcing this.

This means that in order to make the application conform to a11y best practices when having a tooltip, you have to add aria-described for each element with a tooltip:

<paper-radio-button name="2" aria-describedby="fair">
       <paper-tooltip id='fair'>Fair</paper-tooltip>
       <iron-icon icon="star"></iron-icon>
</paper-radio-button>

If paper-tooltip has an id, then it should have enough to be able to do this automatically:

this.target.setAttribute('aria-describedby', this.id)
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

No branches or pull requests

1 participant