-
Notifications
You must be signed in to change notification settings - Fork 844
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] Convert EuiFlyout
#6213
Conversation
…ng Flyout Footer padding in the padding matrix in Flyout
…their own file. Created a function responsible for composing Flyout padding. This will reduce the amount of code duplications
…ined padding styles into the new composeFlyoutPadding function
…ved them into their own function
Summary of the last requested changes
I'll be assigning anyone who previously provided a review on #6108 to this PR as well. |
Preview documentation changes for this PR: https://eui.elastic.co/pr_6213/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_6213/ |
…lyout__redo Pulling in the latest code from main
Preview documentation changes for this PR: https://eui.elastic.co/pr_6213/ |
+ fix ensuing TS errors
Quick update: still doing a bit more QA on this. In particular our flyout docs have 0 examples of the |
@constancecchen In slack it was decided that we shouldn't have a |
Preview documentation changes for this PR: https://eui.elastic.co/pr_6213/ |
Ahh thanks for that context Bree! in that case I'll likely just do b), which will be local only testing but not commit any docs changes to remote. Thanks! |
- right/left side borders were incorrectly overriding push border thickness and should not be present when type is not `push` present
- overflow-x should be on the __banner element, not on EuiCallOut - remove .euiCallOut CSS completely: it wasn't being applied correctly (spelling), and also the border overrides it was setting no longer apply to Amsterdam themes
- Remove now-unused modifier class - Clean up CSS to not use a ternary, which avoids writing 2 sets of CSS styles/overrides
Preview documentation changes for this PR: https://eui.elastic.co/pr_6213/ |
- fix responsive flyout behavior by removing `max-width: none` from inline styles (was overriding max-width 90vw CSS media query) - add noMaxWidth Emotion class instead, which can be overridden by said media query - revert m sized flyouts to `424px` wide min widths - fix max-width for m sized flyouts missing a `px` unit - remove unnecessary `Math.round` from l.max - update inline custom max-width/width styles to use logical properties
Preview documentation changes for this PR: https://eui.elastic.co/pr_6213/ |
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.
Alrighty, all done QA/ing reviewing! Just wanted to add a couple notes of things I found, and things to look out for in the future:
-
Flyouts widths were broken/going past the screen width on mobile screens - fixed in 937695a, and totally my fault for recommending that style approach, but also a general reminder to test on mobile
-
Don't forget to look for & delete Amsterdam overrides (5536a15)
-
This is probably the main one: preserving CSS comments (a7bbed8). Most CSS comments are important to leave in for context (e.g. the
!important
in 9253c8a provided context as to why it shouldn't be removed) and as long as the CSS is still relevant/hasn't been removed, we should still be attempting to leave them in.
Preview documentation changes for this PR: https://eui.elastic.co/pr_6213/ |
Summary
This PR converts
EuiFlyout
to Emotion. There are no functional or UI changes within this conversion.This PR was started in #6108, but due to the nature of the changes, I thought it would be best to bring the actual changes over to a new branch and leave everything else to reduce the diff churn from moving around files.
Checklist
[ ] Props have proper autodocs and playground toggles[ ] Added documentation[ ] Updated the Figma library counterpart