From 0e0493aec09da3aaf3e367c003fbd432ab83e57d Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Wed, 26 Jul 2023 13:24:45 -0700 Subject: [PATCH] Refactor/remove breadcrumb styling main (#4621) (#4627) * chore(chrome): Remove OSD breadcrumb styling and classes Now that the breacrumb styling is coming from OUI Signed-off-by: Josh Romero * chore (chrome): Remove other remnants of breadcrumb styling Essentially reverting: - https://github.com/opensearch-project/OpenSearch-Dashboards/pull/1954 - https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2085 Signed-off-by: Josh Romero * Update snapshot Signed-off-by: Josh Romero * add changelog Signed-off-by: Josh Romero * Update header snapshot Signed-off-by: Josh Romero --------- Signed-off-by: Josh Romero (cherry picked from commit 983fc34bc2cf03e5106068c0b567fb993a7d9664) Signed-off-by: github-actions[bot] # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] --- src/core/public/_variables.scss | 7 -- .../chrome/public/assets/round_filter.svg | 8 -- .../header/__snapshots__/header.test.tsx.snap | 20 +--- .../header_breadcrumbs.test.tsx.snap | 6 +- src/core/public/chrome/ui/header/header.tsx | 3 +- .../chrome/ui/header/header_breadcrumbs.scss | 107 ------------------ .../ui/header/header_breadcrumbs.test.tsx | 6 +- .../chrome/ui/header/header_breadcrumbs.tsx | 16 +-- 8 files changed, 13 insertions(+), 160 deletions(-) delete mode 100644 src/core/public/chrome/public/assets/round_filter.svg delete mode 100644 src/core/public/chrome/ui/header/header_breadcrumbs.scss diff --git a/src/core/public/_variables.scss b/src/core/public/_variables.scss index f77e2b4d2755..9d8077b50ad4 100644 --- a/src/core/public/_variables.scss +++ b/src/core/public/_variables.scss @@ -1,10 +1,3 @@ @import "@elastic/eui/src/global_styling/variables/header"; $osdHeaderOffset: $euiHeaderHeightCompensation; -$osdHeaderBreadcrumbBlueBackground: #b9d9eb; -$osdHeaderBreadcrumbGrayBackground: #d9e1e2; -$osdHeaderBreadcrumbCollapsedLink: #002a3a; -$osdHeaderBreadcrumbPacificSkyDarkestBackground: #163f66; -$osdHeaderBreadcrumbMidnightSkyMediumBackground: #4c636f; -$osdHeaderBreadcrumbMidnightSkyMediumLightColor: #96a0a5; -$osdHeaderBreadcrumbMidnightSkyMediumLightHoverColor: #b0b8bb; diff --git a/src/core/public/chrome/public/assets/round_filter.svg b/src/core/public/chrome/public/assets/round_filter.svg deleted file mode 100644 index 84cf36058553..000000000000 --- a/src/core/public/chrome/public/assets/round_filter.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/src/core/public/chrome/ui/header/__snapshots__/header.test.tsx.snap b/src/core/public/chrome/ui/header/__snapshots__/header.test.tsx.snap index 806e99821270..9068e225c8ba 100644 --- a/src/core/public/chrome/ui/header/__snapshots__/header.test.tsx.snap +++ b/src/core/public/chrome/ui/header/__snapshots__/header.test.tsx.snap @@ -3614,19 +3614,16 @@ exports[`Header handles visibility and lock changes 1`] = ` "thrownError": null, } } - isDarkMode={false} > @@ -3634,20 +3631,19 @@ exports[`Header handles visibility and lock changes 1`] = ` breadcrumbs={ Array [ Object { - "className": "osdBreadcrumbs", "data-test-subj": "breadcrumb first last", "text": "test", }, ] } - className="euiHeaderBreadcrumbs osdHeaderBreadcrumbs" + className="euiHeaderBreadcrumbs" data-test-subj="breadcrumbs" max={10} truncate={true} >