-
Notifications
You must be signed in to change notification settings - Fork 843
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
Added display
prop to EuiPopover
#2112
Conversation
To easily add `display: block`
@@ -42,12 +42,12 @@ describe('EuiPopover', () => { | |||
}); | |||
|
|||
describe('props', () => { | |||
describe('withTitle', () => { |
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.
withTitle
is no longer a valid prop
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.
Gave a small suggestion on the example verbiage, but everything 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.
Small docs suggestion. LGTM.
Co-Authored-By: dave.snider@gmail.com <dave.snider@gmail.com>
* Added `display` option to EuiPopover * Updated color picker * Updated super date picker * Updated super select
Summary
I got really tired of having to give the popover and the anchor a className in order to override the
display: inline-block
property. So I created a prop on the component so now you can easily pass downdisplay: "block"
and it will apply to both elements.Also updated in the following usages
Checklist
[ ] This was checked in mobile[ ] This was checked in dark mode[ ] This was checked for breaking changes and labeled appropriately[ ] This was checked against keyboard-only and screenreader scenarios[ ] This required updates to Framer X components