Skip to content

[Tooltip] Missing ARIA role and describedby #58

Description

@olegpolyakov

Component

Tooltip

Problem

Missing proper ARIA attributes.

Suggested Fix

// Trigger
<button aria-describedby={isOpen ? tooltipId : undefined}>
    {children}
</button>

// Tooltip
<div role="tooltip" id={tooltipId}>
    {content}
</div>

Impact

Screen readers cannot associate tooltip with trigger

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions