-
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
[EuiTableRow] Convert to Emotion #7628
Conversation
- just setting up the responsive context and conditional logic, no styles yet
- make color variables a utility fn to help reduce cruft/setup before the styles obj (there will be more coming)
+ remove now-unnecessary `:hover` override, euiPanel mixin + remove unnecessary extra `euiBottomShadowSmall` on expanded rows, that already gets inherited by `.euiTableRow` - TODO: `cellContentPadding` might need to be DRYed out with `euiTable`, but let's hold off on that for now
- note that we've put `position: relative` on all mobile rows as a default since so many states use it - so no need to apply it to only specific kinds of rows
-⚠️ Opinionatedly remove `$euiTableActionsBorderColor` in favor of just using the border color - I don't see a point at all in making this distinction - prefer a pseudo element over a linear gradient for rendering the 'border' - remove mixins and variables
- note: the `_` prefix before the animation util fn prevents it from getting a label in Emotion's className logic
+ add one mobile fix and one temporary !important workaround found from said QA
- table cells will use these shortly, so we might as well make it now
Preview staging links for this PR:
|
💚 Build Succeeded
History
|
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 tried as best as possible to follow along what's happening for tables, but I might still miss some general understanding 😅 But overall the changes look good to me, I left a couple smaller notes.
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.
🚢 🐈⬛ Nice work on converting the code but also making it cleaner more readable ✨
Thanks as always for the awesome and thorough PR reviews Lene! 💖 |
Summary
This doesn't convert all table row styles to Emotion, but it converts (what I consider) to be the majority of row-related CSS (enough to get a mostly functional Storybook up). There are still some styles that I consider belong to cells, rather than rows, which I will target in the next cell-focused PR.
As mentioned in #7625, staging itself will still look broken until all CSS is converted over (at which point I'll do another prod vs staging QA pass and also hopefully have more Storybooks written by then for easier QA).
@euiTableActionsBackgroundMobile
mixin$euiTableActionsBorderColor
variable (+ updated mobile usages to use the theme-wide border color token, matching desktop border colors)$euiTableHoverColor
variable$euiTableSelectedColor
variable$euiTableHoverSelectedColor
variable$euiTableHoverClickableColor
variable$euiTableFocusClickableColor
variableQA
General checklist
- [ ] Checked for accessibility including keyboard-only and screenreader modes- [ ] Added or updated jest and cypress tests- [ ] If applicable, added the breaking change issue label (and filled out the breaking change checklist)