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

[EuiCollapsibleNavGroup] Fix titleSize prop types and added iconProps prop #3365

Merged
merged 6 commits into from
Apr 23, 2020

Conversation

cchaos
Copy link
Contributor

@cchaos cchaos commented Apr 21, 2020

Fixes usage of <Omit> as a prop type instead of prop value

Before

I was trying to disallow the l and m options from titleSize, but it was still being allowed:
Screen Shot 2020-04-20 at 20 23 30 PM

After
Using <Exclude> instead of <Omit> fixed the issue
Screen Shot 2020-04-21 at 08 07 23 AM

Also, I added a iconProps prop to allow extending of the EuiIcon props

Like for adding data-test-subj to the rendered icon.


CONSUMING.md

I know this isn't really related, but I added a small section to this wiki page to explain how a consumer should handle customizing the styles of EUI components via className.


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 requested a review from elizabetdev April 21, 2020 12:42
@kibanamachine
Copy link

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

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.

Looked into the code and it looks good! 🎉

@kibanamachine
Copy link

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

@kibanamachine
Copy link

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

@cchaos cchaos merged commit 0966553 into elastic:master Apr 23, 2020
@cchaos cchaos deleted the fix/omit_prop_type branch April 23, 2020 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants