From d90731a1a311dd2b839cfd66dba407ab84263c17 Mon Sep 17 00:00:00 2001 From: Tim Sullivan Date: Mon, 9 Dec 2024 05:16:24 -0700 Subject: [PATCH] [8.x] [SharedUX] Replace Sass with Emotion, Round 1 (#199885) (#203314) # Backport This will backport the following commits from `main` to `8.x`: - [[SharedUX] Replace Sass with Emotion, Round 1 (#199885)](https://github.com/elastic/kibana/pull/199885) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) --- .../loading_indicator.test.tsx.snap | 73 +++++++++++++------ .../collapsible_nav.test.tsx.snap | 40 +++++++--- .../header/__snapshots__/header.test.tsx.snap | 6 +- .../src/ui/header/collapsible_nav.scss | 46 ------------ .../src/ui/header/collapsible_nav.tsx | 15 ++-- .../ui/header/get_collapsible_nav_styles.ts | 72 ++++++++++++++++++ .../src/ui/header/header_logo.scss | 11 --- .../src/ui/header/header_logo.tsx | 25 ++++++- .../src/ui/loading_indicator.scss | 4 - .../src/ui/loading_indicator.test.tsx | 4 +- .../src/ui/loading_indicator.tsx | 47 ++++++++---- .../chrome/navigation/src/ui/header_logo.scss | 4 - .../timelines/components/timeline/helpers.tsx | 2 +- x-pack/test/custom_branding/tests/settings.ts | 3 +- 14 files changed, 222 insertions(+), 130 deletions(-) delete mode 100644 packages/core/chrome/core-chrome-browser-internal/src/ui/header/collapsible_nav.scss create mode 100644 packages/core/chrome/core-chrome-browser-internal/src/ui/header/get_collapsible_nav_styles.ts delete mode 100644 packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_logo.scss delete mode 100644 packages/core/chrome/core-chrome-browser-internal/src/ui/loading_indicator.scss delete mode 100644 packages/shared-ux/chrome/navigation/src/ui/header_logo.scss diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/__snapshots__/loading_indicator.test.tsx.snap b/packages/core/chrome/core-chrome-browser-internal/src/ui/__snapshots__/loading_indicator.test.tsx.snap index b221e4e9a64ab..c8e702f228b20 100644 --- a/packages/core/chrome/core-chrome-browser-internal/src/ui/__snapshots__/loading_indicator.test.tsx.snap +++ b/packages/core/chrome/core-chrome-browser-internal/src/ui/__snapshots__/loading_indicator.test.tsx.snap @@ -1,31 +1,62 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`kbnLoadingIndicator is hidden by default 1`] = ` - + + + + `; exports[`kbnLoadingIndicator is visible when loadingCount is > 0 1`] = ` - + + + + `; exports[`kbnLoadingIndicator shows logo image when customLogo is set 1`] = ` - + + + + `; diff --git a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/__snapshots__/collapsible_nav.test.tsx.snap b/packages/core/chrome/core-chrome-browser-internal/src/ui/header/__snapshots__/collapsible_nav.test.tsx.snap index 62b40f0d05e9b..167c919d6f498 100644 --- a/packages/core/chrome/core-chrome-browser-internal/src/ui/header/__snapshots__/collapsible_nav.test.tsx.snap +++ b/packages/core/chrome/core-chrome-browser-internal/src/ui/header/__snapshots__/collapsible_nav.test.tsx.snap @@ -168,7 +168,7 @@ Array [ >