Skip to content

Tooltip Component - Improve accessibility with appropriate aria labels #2314

@Calinator444

Description

@Calinator444

Is your feature request related to a problem? Please describe.

The Razden tooltip component doesn't provide suitable attributes for screen readers. According to the Mozilla documentation, the component that triggers the tooltip should reference the tooltip by ID with aria-describedby (with the ID of the tooltip). The tooltip content should also have the attribute role='tooltip'.

Describe the solution you'd like
Update the tooltip component to populate these attributes when assigned to an element. Alternatively allow developers to specify accessibility attributes within ToolTipOptions

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
N/a

Additional context

Image

Figure: Tooltip trigger does not have aria-describedby attribute

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