Skip to content
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

Merged
merged 16 commits into from
Feb 28, 2020

Conversation

cchaos
Copy link
Contributor

@cchaos cchaos commented Feb 24, 2020

Continuing preparation for the new nav drawer

1. Added arrowDisplay prop to EuiAccordion for changing side or hiding completely

Screen Shot 2020-02-24 at 15 58 01 PM

2. Added prepend and append ability to EuiFieldSearch

Screen Shot 2020-02-24 at 15 57 32 PM

3. Added notification and notificationColor 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 the EuiHeaderSectionItemButton. Instead, I just made it an option of EuiHeaderSectionItemButton directly to make it simpler.

Screen Shot 2020-02-24 at 15 56 40 PM

This will also then deprecate the need for the class . euiHeaderNotification which can only be applied manually.

4. Extending div element in EuiFlyout type

This is so id can properly be passed down without complaint by TS.

Checklist

  • Check against all themes for compatibility in both light and dark modes
  • Checked in mobile
  • Checked in IE11 and Firefox
  • Props have proper autodocs
  • Added documentation examples
  • Added or updated jest tests
  • Checked for breaking changes and labeled appropriately
  • Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

@cchaos cchaos added the deprecations Contains deprecations. Add them to the deprecations meta ticket after merge. label Feb 24, 2020
@cchaos cchaos requested a review from thompsongl February 24, 2020 21:12
@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_2914/

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_2914/

@cchaos cchaos requested a review from elizabetdev February 25, 2020 01:54
Copy link
Contributor

@thompsongl thompsongl left a 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/form/range/dual_range.tsx Outdated Show resolved Hide resolved
src/components/form/range/dual_range.tsx Outdated Show resolved Hide resolved
src/components/form/range/dual_range.tsx Outdated Show resolved Hide resolved
@snide snide mentioned this pull request Feb 25, 2020
35 tasks
@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_2914/

Copy link
Contributor

@elizabetdev elizabetdev left a 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.

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_2914/

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_2914/

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_2914/

@cchaos cchaos merged commit d44f1d3 into elastic:master Feb 28, 2020
@cchaos cchaos deleted the adding_more_props branch February 28, 2020 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecations Contains deprecations. Add them to the deprecations meta ticket after merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants