From af5698c43c4f9d3a9106bde45fadcea56f428742 Mon Sep 17 00:00:00 2001 From: Cee Chen <549407+cee-chen@users.noreply.github.com> Date: Thu, 28 Mar 2024 10:27:05 -0700 Subject: [PATCH] [EuiTableRow] Convert to Emotion (#7628) --- changelogs/upcoming/TBD.md | 11 + .../__snapshots__/basic_table.test.tsx.snap | 12 +- .../in_memory_table.test.tsx.snap | 8 +- .../table/__snapshots__/table.test.tsx.snap | 4 +- .../__snapshots__/table_row.test.tsx.snap | 4 +- src/components/table/_mixins.scss | 7 - src/components/table/_responsive.scss | 99 +-------- src/components/table/_table.scss | 57 +---- src/components/table/_variables.scss | 11 - src/components/table/table.styles.ts | 36 ++- src/components/table/table_row.stories.tsx | 98 +++++++++ src/components/table/table_row.styles.ts | 205 ++++++++++++++++++ src/components/table/table_row.tsx | 30 ++- src/components/table/table_row_cell.tsx | 11 +- 14 files changed, 400 insertions(+), 193 deletions(-) create mode 100644 changelogs/upcoming/TBD.md create mode 100644 src/components/table/table_row.stories.tsx create mode 100644 src/components/table/table_row.styles.ts diff --git a/changelogs/upcoming/TBD.md b/changelogs/upcoming/TBD.md new file mode 100644 index 000000000000..14e262d98d2d --- /dev/null +++ b/changelogs/upcoming/TBD.md @@ -0,0 +1,11 @@ +**CSS-in-JS conversions** + +- Removed the following `EuiTable` Sass variables: + - `$euiTableHoverColor` + - `$euiTableSelectedColor` + - `$euiTableHoverSelectedColor` + - `$euiTableActionsBorderColor` + - `$euiTableHoverClickableColor` + - `$euiTableFocusClickableColor` +- Removed the following `EuiTable` Sass mixins: + - `euiTableActionsBackgroundMobile` diff --git a/src/components/basic_table/__snapshots__/basic_table.test.tsx.snap b/src/components/basic_table/__snapshots__/basic_table.test.tsx.snap index d5b80dc5add5..f7c7e222ae10 100644 --- a/src/components/basic_table/__snapshots__/basic_table.test.tsx.snap +++ b/src/components/basic_table/__snapshots__/basic_table.test.tsx.snap @@ -44,7 +44,7 @@ exports[`EuiBasicTable renders (bare-bones) 1`] = ` class="css-0" >