-
Notifications
You must be signed in to change notification settings - Fork 863
[EuiPopover] Change hasArrow, position and offset defaults
#9218
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
base: main
Are you sure you want to change the base?
[EuiPopover] Change hasArrow, position and offset defaults
#9218
Conversation
5557349 to
6d513e7
Compare
- triggered by updated popover positioning
6d513e7 to
e72009c
Compare
💚 Build SucceededHistory
cc @mgadewoll |
💚 Build Succeeded
cc @mgadewoll |
|
LGTM @mgadewoll BTW the related Figma component was added to the new Borealis library and is using the same new defaults here |
@JoseLuisGJ Awesome, thanks a lot for the update! 🎉 |
@JoseLuisGJ I can see it on a Retina display in Chrome and only for the left aligned positions (
If we try to change the position further inwards, then other displays look not aligned.
I think it's somewhat of an edge case. |















Summary
Closes #9184
This PR updates
EuiPopoverby changing the default values of these props to change the visual output of the component:hasArrowpositionoffsethasArrowbooleanfalsetruepositionuniondownLeftdownCenteroffsetnumberhasArrow?0:44Additionally,
EuiInputPopoveris updated by changing itsoffset.offsetnumber20EuiTourStepis updated to only sethasArrowon its underlyingEuiPopoverby default whendecoration="beacon"and notdecoration="none"(unless manually overridden).Why are we making this change?
🎨 UI refresh: The changes are part of the effort to refresh and modernize the UI (#9183)
Screenshots #
EuiPopover
EuiInputPopover
EuiTourStep with
decoration="none"Impact to users
QA
🧪 Storybook:
Checks:
EuiPopoverupdates are correct and that manually set props apply as expectedpositionisdownLeftoffsetis4withhasArrow=falseand0withhasArrow=0(same as production)EuiInputPopoverhas a defaultoffsetof2EuiTourStepwithdecoration="none"does not render an arrow by default (applyinghasArrowwill still override this)General checklist
@defaultif default values are missing) and playground toggles