Skip to content

[Bug]: Tooltip is missing role="tooltip" #6015

@jawinn

Description

@jawinn

Code of conduct

  • I agree to follow this project's code of conduct.

Impacted component(s)

Tooltip

Library version

1.9.0

Expected behavior

According to the Tooltip documentation, it should have role="tooltip" set on its content. I am expecting to see the role set and for it to appear as tooltip in the accessibility tree.

Actual behavior

The Tooltip component is missing a role of tooltip. It is not present in the accessibility tree and I do not see it in the shadow-root markup. This affects how it is being presented to assistive technology.

The SWC accessibility documentation for the Tooltip component says:

The tooltip is automatically assigned appropriate ARIA attributes:

  • role="tooltip" is applied to the tooltip content

But I am not seeing that this is currently true. Was this intentional or a regression?

Screenshots

Example accessibility tree in Chrome from https://opensource.adobe.com/spectrum-web-components/components/tooltip/#overlay shows it as a group:

Image

Inspector markup:

Image

What browsers are you seeing the problem in?

Chrome

How can we reproduce this issue?

  1. Go to any Tooltip currently on https://opensource.adobe.com/spectrum-web-components/components/tooltip
  2. Inspect the tooltip component markup and its representation in the accessibility tree.

Sample code or abstract reproduction which illustrates the problem

No response

Severity

None

Logs taken while reproducing problem

No response

Would you like to track this issue in Jira?

  • Yes, please tell me the ticket number!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions