Repository navigation
[CSS-in-JS] useEuiTheme & withEuiTheme refactor - #4594
Conversation
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4594/ |
|
jenkins test this
|
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4594/ |
cchaos
left a comment
There was a problem hiding this comment.
👍 LGTM! Thanks for making this change. I think it's also easier this way if they ever just need to grab the current color mode. Instead of everything.
I posted a commit that just updated the doc section wording a bit. Feel free to edit if I didn't use the right language.
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4594/ |
Summary
useEuiThemefrom an array ([ theme, colorMode, modifications ]) to an object of shape{ euiTheme, colorMode, modifications }withEuiThemeto clarify wrapped component props and HOC props, allowing for IDE autocomplete support for theme variables.### Checklist