Skip to content

[FEAT REQ] Changeable role attribute (v5) #1123

@mailinhdang

Description

@mailinhdang

Is your feature request related to a problem? Please describe.
Regarding the tooltip design pattern of the W3C (https://www.w3.org/WAI/ARIA/apg/patterns/tooltip/), a tooltip should "not receive focus. A hover that contains focusable elements can be made using a non-modal dialog".
Currently, I have a use case where my tooltip contains multiple buttons or links. Hence, my tooltip should rather be a non-modal dialog and for dialogs, you usually set role=dialog instead of role=tooltip.

Describe the solution you'd like
Making the role of the tooltip component a changeable property or adding a prop asDialog would be very helpful to set the correct role attribute.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions