-
Notifications
You must be signed in to change notification settings - Fork 839
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
[Emotion] Fix/regression test more css
props
#6248
Conversation
- for components/subcomponents that explicitly disallow custom `style`s + update API to take an obj of options
- converted in previous PR
+ add custom styles regression tests + DRY out repeated required component props
- requires lodash which is unfortunate, but a handy util / necessary evil that can be replaced later
css
props not being correctly mergedcss
props
Preview documentation changes for this PR: https://eui.elastic.co/pr_6248/ |
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.
Does not fix/regression test all remaining components that have childProps - the changelist was getting large, and the tooltip props are slightly tricky, so I'm going to split it into (yet another) follow-up PR
Sounds good!
options: { | ||
childProps?: string[]; | ||
skipStyles?: boolean; | ||
skipParentTest?: boolean; | ||
} = {} |
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.
I like this API 👍
Summary
Follow up to #6239, closes #6152
This PR:
shouldRenderCustomStyles
API to use a more future-proofoptions
obj that allows the following:styles
assertion (since some components explicitly disallow customstyle
s)childProps
- the changelist was getting large, and the tooltip props are slightly tricky, so I'm going to split it into (yet another) follow-up PRChecklist