-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[New navigation] Use custom offset in EuiTooltip #234553
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
[New navigation] Use custom offset in EuiTooltip #234553
Conversation
This caused a failure on main, likely due to a PR being merged around the same time as elastic#229868, which removes the usage of the translation.
|
@elasticmachine merge upstream |
| export const TOP_BAR_HEIGHT = 48; | ||
| export const TOP_BAR_POPOVER_GAP = 8; | ||
| export const BOTTOM_POPOVER_GAP = 17; | ||
| export const POPOVER_OFFSET = 5; |
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.
@paulinashakirova Why is POPOVER_OFFSET changed here to TOOLTIP_OFFSET?
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.
They got merged locally at some point, but I’ve split them out now.
Nice catch — appreciate you calling it out 👍
| export const TOP_BAR_POPOVER_GAP = 8; | ||
| export const BOTTOM_POPOVER_GAP = 17; | ||
| export const POPOVER_OFFSET = 5; | ||
| export const TOOLTIP_OFFSET = 4; |
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.
@ek-so what do you think about this value? Should we have 2 different ones for collapsed and expanded mode?
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.
@weronikaolejniczak thanks for tagging! I took a look already, I think it's fine
💚 Build Succeeded
Metrics [docs]Async chunks
History
|
weronikaolejniczak
left a comment
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.
LGTM, Kate approves so we're good to go 🚀 thanks, @paulinashakirova!
## Summary Implementing custom `EuiToolTip` following new functionality to be able to customize tooltip distance ([eui](https://github.com/elastic/eui/pull/8988/files)).
## Summary Implementing custom `EuiToolTip` following new functionality to be able to customize tooltip distance ([eui](https://github.com/elastic/eui/pull/8988/files)).
Summary
Implementing custom
EuiToolTipfollowing new functionality to be able to customize tooltip distance (eui).4px offset looks like this
Compressed mode

Expanded mode