Replies: 1 comment 3 replies
-
Hey @Josh68, maybe we can combine these discussions, because they're related and possibly have the same resolution. Here's what you said in your other discussion:
We actually just discussed this at the end of last month in one of our meetings. The tooltip component needs a lot of love in general, but what we're proposing is a new component for the tooltip triggers. It's actually not good for accessibility to use links for these triggers, but that's historically how we have achieved that inline styling. We discussed a phased approach starting with documentation, but then we determined that we really need to have an alternative built before we officially tell teams not to use links. Notes on what we plan to do:
CC @SparrowSpit, @zarahzachz |
Beta Was this translation helpful? Give feedback.
-
This question is related to #2652
I've found a way to make
Tooltip
triggers flow with surrounding content and wrap correctly. To do this, I can set the component to includedisplay: inline
and render the trigger as an anchor element.I think there isn't a way to do this same thing with
HelpDrawerTrigger
. I can passinline
, but it's still rendered as abutton
, and I don't seem to be able to make its content flow and wrap, along with other content (button text can wrap, but it doesn't seem to do so in relation to other content). Maybe I'm missing the right CSS to achieve this, but I wonder if there's a reason why the drawer trigger can't also optionally render as an anchor?Beta Was this translation helpful? Give feedback.
All reactions