Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

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

@lukeschaefer

Description

@lukeschaefer

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions