-
Notifications
You must be signed in to change notification settings - Fork 842
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
Adding more props to EuiHeaderSectionItemButton, EuiFieldSearch, and EuiAccordion #2914
Conversation
Needs some doc something
…nItemButton to automatically add the correct positioning via CSS
This reverts commit 61a3103.
Preview documentation changes for this PR: https://eui.elastic.co/pr_2914/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_2914/ |
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; just a couple comment changes
src/components/header/header_section/header_section_item_button.tsx
Outdated
Show resolved
Hide resolved
Preview documentation changes for this PR: https://eui.elastic.co/pr_2914/ |
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! 🎉
I looked at the code and tested the build.
Preview documentation changes for this PR: https://eui.elastic.co/pr_2914/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_2914/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_2914/ |
Continuing preparation for the new nav drawer
1. Added
arrowDisplay
prop to EuiAccordion for changing side or hiding completely2. Added
prepend
andappend
ability to EuiFieldSearch3. Added
notification
andnotificationColor
props to EuiHeaderSectionItemButton... to automatically add the correct positioning via CSS. Consumers used to have to supply the
<EuiNotificationBadge className="euiHeaderNotification" />
manually as a child of theEuiHeaderSectionItemButton
. Instead, I just made it an option ofEuiHeaderSectionItemButton
directly to make it simpler.This will also then deprecate the need for the class
. euiHeaderNotification
which can only be applied manually.4. Extending
div
element in EuiFlyout typeThis is so
id
can properly be passed down without complaint by TS.Checklist