-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Lens] Fix help popovers #103314
[Lens] Fix help popovers #103314
Conversation
@elasticmachine merge upstream |
Pinging @elastic/kibana-app (Team:KibanaApp) |
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
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.
Left comments regarding a possibly cleaner way of dealing with the popover padding without using negative margining, but will leave the ultimate decision up to you. Approving now so I don't hold you up.
@@ -65,7 +65,6 @@ export const HelpPopover = ({ | |||
isOpen={isOpen} | |||
ownFocus | |||
panelClassName="lnsHelpPopover__panel" | |||
panelPaddingSize="none" |
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.
Rather than removing the panelPaddingSize
prop here and relying on negative margining to get the popover contents flush with the popover edges, it might be cleaner to just leave this panelPaddingSize="none"
in place and instead put a paddingSize="m"
prop on the EuiPopoverTitle
component below. Not super important, but just thought it might be cleaner overall.
@@ -6,6 +6,7 @@ | |||
@include euiYScrollWithShadows; | |||
max-height: 40vh; | |||
padding: $euiSizeM; | |||
margin: -$euiSizeM; |
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.
As per my previous comment, you can do away with the negative margining CSS if you go the route of applying a paddingSize
prop to the EuiPopoverTitle
component.
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
THanks @MichaelMarcialis , much better |
Part of #97421
New look: