-
Notifications
You must be signed in to change notification settings - Fork 77
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
fix(popover, tooltip): change display to contents #11384
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes look good! Is there a quick explainer of the pros / any cons of this change or things implementers should look out for?
Here's a good explainer: https://css-tricks.com/get-ready-for-display-contents/
This should be fine since we don't want the host of the tooltip/popover to have any dimensions or affect any parent elements dimensions. |
Something to watch out for is that setting a width/height on a tooltip would no longer take up any space. Although this is a pro since it doesn't have any advantage to it. |
@jcfranco can you review? |
Cool. Same for Popover then - folks may just need to move any set widths on Popover to a child element it sounds like. |
Yes, that is already the case for 3.0 anyway |
Noice! Should this use |
Related Issue: #11378
Summary
tooltip
andpopover
fromblock
tocontents
.BEGIN_COMMIT_OVERRIDE
omitted from changelog
END_COMMIT_OVERRIDE