From 2d261e89a0ef3c5d8d555effac6150facedee324 Mon Sep 17 00:00:00 2001 From: Kartik Desai Date: Thu, 28 Jul 2022 17:04:39 -0500 Subject: [PATCH] [UX] Restyle global breadcrumbs (#1954) * Issue-1858 Restyle global breadcrumbs Signed-off-by: kaddy645 * Undo max count Signed-off-by: kaddy645 * update snapshot Signed-off-by: kaddy645 * add svg round-filter Signed-off-by: kaddy645 * update tests Signed-off-by: kaddy645 * spelling err Signed-off-by: kaddy645 * remove un-necessary width Signed-off-by: kaddy645 * pr updates Signed-off-by: kaddy645 * pr updates Signed-off-by: kaddy645 * clean code Signed-off-by: kaddy645 --- src/core/public/_variables.scss | 3 + .../chrome/public/assets/round_filter.svg | 8 +++ .../header/__snapshots__/header.test.tsx.snap | 18 ++++-- .../header_breadcrumbs.test.tsx.snap | 6 +- .../chrome/ui/header/header_breadcrumbs.scss | 55 +++++++++++++++++++ .../chrome/ui/header/header_breadcrumbs.tsx | 12 +++- 6 files changed, 92 insertions(+), 10 deletions(-) create mode 100644 src/core/public/chrome/public/assets/round_filter.svg create 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 9d8077b50ad4..b36b21eb667c 100644 --- a/src/core/public/_variables.scss +++ b/src/core/public/_variables.scss @@ -1,3 +1,6 @@ @import "@elastic/eui/src/global_styling/variables/header"; $osdHeaderOffset: $euiHeaderHeightCompensation; +$osdHeaderBreadcrumbBlueBackground: #b9d9eb; +$osdHeaderBreadcrumbGrayBackground: #d9e1e2; +$osdHeaderBreadcrumbCollapsedLink: #002a3a; diff --git a/src/core/public/chrome/public/assets/round_filter.svg b/src/core/public/chrome/public/assets/round_filter.svg new file mode 100644 index 000000000000..84cf36058553 --- /dev/null +++ b/src/core/public/chrome/public/assets/round_filter.svg @@ -0,0 +1,8 @@ + + + + + + + + \ 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 a3ee7aec2cd1..b2af9f57e011 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 @@ -3595,11 +3595,13 @@ exports[`Header handles visibility and lock changes 1`] = ` breadcrumbs={ Array [ Object { + "className": "osdBreadcrumbs", "data-test-subj": "breadcrumb first last", "text": "test", }, ] } + className="osdHeaderBreadcrumbs" data-test-subj="breadcrumbs" max={10} > @@ -3607,25 +3609,26 @@ exports[`Header handles visibility and lock changes 1`] = ` breadcrumbs={ Array [ Object { + "className": "osdBreadcrumbs", "data-test-subj": "breadcrumb first last", "text": "test", }, ] } - className="euiHeaderBreadcrumbs" + className="euiHeaderBreadcrumbs osdHeaderBreadcrumbs" data-test-subj="breadcrumbs" max={10} truncate={true} >