Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tooltip] interactive #985

Closed
seedy opened this issue Nov 19, 2021 · 1 comment
Closed

[Tooltip] interactive #985

seedy opened this issue Nov 19, 2021 · 1 comment

Comments

@seedy
Copy link

seedy commented Nov 19, 2021

Feature request

Overview

I am working on an OSS component library project built on top of Radix-ui primitives to help my current company build standards upon its multiple projects.

We need interactive tooltips - a tooltip which content can be hovered and clicked, without closing the tooltip - to allow users interact with links inside tooltip content, for instance.

As far as I understand, WCAG recommends enabling tooltip content to be interactive: WCAG 2.1 success criterion 1.4.13.

For now, I need an extra layer of customization on top of Radix-ui Tooltip primitive to implement that behaviour.

I'd like a simple configuration, such as an interactive variant, or this behaviour by default.

Examples in other libraries

I used MUI for a while and know they implemented this behaviour by default on their tooltips. They seem to argue it's the recommended behaviour: https://mui.com/components/tooltips/#interactive

Who does this impact? Who is this for?

I expect implementing this behaviour by default on tooltips might bring breaking changes to Radix-ui integrators.

On the other hand, I would expect adding this behaviour as part of a variant of the Tooltip primitive component might bring no impact on the current integrator base.

If I'm right expecting this is a standard recommended by WCAG, I guess this implementation would bring value to every integrator 🙂

I think this feature doesn't bring value to users without a pointing device, though.

Additional context

/

@seedy
Copy link
Author

seedy commented Nov 19, 2021

Closing as there's already an existing issue #620

For anyone reading, I also noticed recommendations not to put interactive content inside tooltips:

@seedy seedy closed this as completed Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant