-
Notifications
You must be signed in to change notification settings - Fork 841
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
[EuiGlobalStyles] Omit global and reset styles when using legacy theme #5473
Conversation
Preview documentation changes for this PR: https://eui.elastic.co/pr_5473/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5473/ |
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.
Thanks for the quick fix. I checked in all the themes and browser 👍
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, I appreciate the extra code comment context!
Co-authored-by: Caroline Horn <[email protected]>
Preview documentation changes for this PR: https://eui.elastic.co/pr_5473/ |
Summary
Makes
EuiGlobalStyles
theme-aware so that global and reset styles are not added when using the legacy theme.Decided to do this in the component rather than in the docs because as we move forward, we'll need to account for future and custom themes potentially having different global styles. For now, we can simply use
isLegacyTheme
as the flag.Checklist