-
Notifications
You must be signed in to change notification settings - Fork 64
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
π·οΈ Allow ReactNode as title in Tooltip #3460
base: develop
Are you sure you want to change the base?
Conversation
I have to check a bit more if this should be allowed. This might get vetoed by our designers since tooltip should be strictly for short feedback etc and to use Popover for more complex formatted output |
f41a5f7
to
d275688
Compare
Just to chime in: This has been requested by our designers several times, where the popover is far to intrusive but the tooltip is to limited. |
This is great feedback and I definetly agree π |
Our guidelines HARD disagree on this π |
We actually discussed this with a former EDS designer (Lucas) who said that it should be treated as guidelines and not rules. In this case it seems like it's expected as a rule. Imo, the result of such restrictions doesnt lead to a better / more consistent design across Equinor, but rather the opposite, since those who have the requirement will just roll their own variants. I would be interested getting some perspectives from the EDS designers (@BirteThornquist / @benteljones?) on why this rule is in place, and their thoughts on the points I outlined above. |
We're going to go through all the old guidelines and create new examples. Several of them are outdated. Although we want the tooltip to be primarily for short, one-line information, we need to facilitate a slightly more adapted context. As you point out @yusijs , it will not lead to a more consistent use, but rather the opposite if the restrictions don't cover what the users need. |
What does this pull request change?
Add
ReactNode
to thetitle
prop in theTooltip
component.Why is this pull request needed?
The title is used directly in the JSX and passing custom components as title seems to work.
Not sure this is intended, up to the EDS team.