Skip to content

Adding more props to EuiHeaderSectionItemButton, EuiFieldSearch, and EuiAccordion - #2914

Merged
cchaos merged 16 commits into
elastic:masterfrom
cchaos:adding_more_props
Feb 28, 2020
Merged

cchaos merged 16 commits into
elastic:masterfrom
cchaos:adding_more_props

Conversation

@cchaos

@cchaos cchaos commented Feb 24, 2020 •

Copy link
Copy Markdown
Contributor

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 PRs that 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
Copy Markdown
Contributor

@kibanamachine

Copy link
Copy Markdown
Contributor

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

@thompsongl thompsongl left a comment

Copy link
Copy Markdown
Contributor

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

@snide snide mentioned this pull request Feb 25, 2020
38 of 48 tasks
@kibanamachine

Copy link
Copy Markdown
Contributor

@elizabetdev elizabetdev left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

@kibanamachine

Copy link
Copy Markdown
Contributor

@kibanamachine

Copy link
Copy Markdown
Contributor

@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 PRs that 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