Skip to content

Tooltip: Not accessible because aria-describedby is not set. #8508

Description

@skairunner

Describe the bug

The tooltip documentation states:

Tooltip component uses tooltip role and when it becomes visible the generated id of the tooltip is defined as the aria-describedby of the target.

This does not actually happen.

Reproducer

https://stackblitz.com/edit/vitejs-vite-wjimyrsw?file=src%2FApp.tsx

System Information

PrimeReact 10.9.7, you can see it on the Primereact demo site: https://primereact.org/tooltip/#delay

Steps to reproduce the behavior

  1. Go to the stackblitz.
  2. Use the inspector to select either button or the input.
  3. Hover over the element, showing the tooltip.
  4. Note that aria-describedby is not set on either the button or the input.

This happens both with the standalone and the integrated tooltip.

Expected behavior

Expected aria-describedby of the target to be set.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs TriageIssue will be reviewed by Core Team and a relevant label will be added as soon as possible

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions