Skip to content

Tooltip does not consistently provide accessible label for button #2583

@KaiPrince

Description

@KaiPrince

We're using tooltips in Awards Leaderboard UI repo, and there is an issue where they do not provide accessible labels until they have been activated with focus or hover.

What I've tried:

  1. Setting aria-label on the button. This does not work because the d2l-tooltip will add aria-labelledby to the button which overrides aria-label.
  2. Setting aria-label on the tooltip. This works, but is undesirable because the tooltip always gives itself aria-hidden="true".

Screenreader says button

button accessible name is empty

button is focused showing tooltip

button accessible name is shown

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