-
Notifications
You must be signed in to change notification settings - Fork 842
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
[CSS-in-JS] Support extensions via overrides prop #4547
[CSS-in-JS] Support extensions via overrides prop #4547
Conversation
@chandlerprall @cchaos |
Preview documentation changes for this PR: https://eui.elastic.co/pr_4547/ |
I think Similarly, in an
🎉 🎉 🎉 |
My only, completely biased opinion, is that Also I think that Thinking 🤔 |
Preview documentation changes for this PR: https://eui.elastic.co/pr_4547/ |
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.
Just a couple questions and clarifications.
euiColorPrimary: '#F56407', | ||
myColor: computed(['colors.euiColorPrimary'], ([primary]) => primary), | ||
}, |
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.
Is this just spitting out the same value as in : myColor = #F56407
?
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.
Yep. Just testing that computed values worked here.
Co-authored-by: Caroline Horn <[email protected]>
Preview documentation changes for this PR: https://eui.elastic.co/pr_4547/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_4547/ |
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.
LGTM, let's get this in so we can also update the docs PR
jenkins test this flaky tooltip |
Preview documentation changes for this PR: https://eui.elastic.co/pr_4547/ |
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.
Suggested a rename but otherwise this LGTM!
Co-authored-by: Chandler Prall <[email protected]>
Preview documentation changes for this PR: https://eui.elastic.co/pr_4547/ |
jenkins test this flaky context_menu |
Preview documentation changes for this PR: https://eui.elastic.co/pr_4547/ |
Summary
Allows for extending a theme object with custom properties (including top-level sections).
Custom properties will be computed 1) after all "standard" theme values have been computed and 2) in the order they are defined. This means that they will have access to all computed values and can have computational dependencies just like standard theme properties.
Checklist