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

[Question]: How to apply a ToggleTip to an element that is not a button? #13134

Closed
1 task done
marcellobarile opened this issue Feb 13, 2023 · 2 comments
Closed
1 task done

Comments

@marcellobarile
Copy link

Question for Carbon

Reading the documentation, the ToggletipButton wrapping component makes clear that only buttons can be used as children. Is this true? What if, for example, I want to add a Toggletip to a Tabs navigation?

Code of Conduct

@tay1orjones
Copy link
Member

Hey there 👋 Yes, right now it's not possible to put a ToggleTip on a Tab, but it has been suggested that this (or a Tooltip) be added to improve accessibility, #13029.

You may be able to use a Popover or Tooltip with the Tab though. I don't believe it's been directly tested though, so it might require some additional styling. I'm not sure if/how it could impact accessibility of the tabs either.

I hope this helps! Happy to continue the conversation here if you have further questions.

@marcellobarile
Copy link
Author

Thanks @tay1orjones, the intermediate solution was actually using the regular Tooltip component :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants