Skip to content

Dynamically applying aria-describedby? #1256

@chardin1

Description

@chardin1

Hey, new here. I'm trying to implement the tooltip but one accessibility issue I'm seeing is that when a tooltip is shown a aria-describedby attribute is not placed on the activeAnchor. I'm trying to polyfill this behavior in my repo but having issues.

As suggested in the docs, I've got a single <Tooltip> component that will be used for all tooltips in the app. My first thought was to use the afterShow/afterHide props but afterShow isn't fired again if moving directly from one tooltip activation to another without it being hidden first.

I'm not really seeing any other means of accessing the activeAnchor when it changes. Any thoughts?

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