forked from opensearch-project/OpenSearch-Dashboards
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UX] Restyle global breadcrumbs (opensearch-project#1954)
* Issue-1858 Restyle global breadcrumbs Signed-off-by: kaddy645 <xdeskart@amazon.com> * Undo max count Signed-off-by: kaddy645 <xdeskart@amazon.com> * update snapshot Signed-off-by: kaddy645 <xdeskart@amazon.com> * add svg round-filter Signed-off-by: kaddy645 <xdeskart@amazon.com> * update tests Signed-off-by: kaddy645 <xdeskart@amazon.com> * spelling err Signed-off-by: kaddy645 <xdeskart@amazon.com> * remove un-necessary width Signed-off-by: kaddy645 <xdeskart@amazon.com> * pr updates Signed-off-by: kaddy645 <xdeskart@amazon.com> * pr updates Signed-off-by: kaddy645 <xdeskart@amazon.com> * clean code Signed-off-by: kaddy645 <xdeskart@amazon.com>
- Loading branch information
Showing
6 changed files
with
92 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
@import "@elastic/eui/src/global_styling/variables/header"; | ||
|
||
$osdHeaderOffset: $euiHeaderHeightCompensation; | ||
$osdHeaderBreadcrumbBlueBackground: #b9d9eb; | ||
$osdHeaderBreadcrumbGrayBackground: #d9e1e2; | ||
$osdHeaderBreadcrumbCollapsedLink: #002a3a; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 12 additions & 6 deletions
18
src/core/public/chrome/ui/header/__snapshots__/header.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
src/core/public/chrome/ui/header/__snapshots__/header_breadcrumbs.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
@import "../../../../public/variables"; | ||
|
||
$firstBreadcrumbPolygon: polygon( | ||
0% 0%, | ||
100% 0%, | ||
calc(100% - #{$euiSizeS}) 100%, | ||
0% 100% | ||
); | ||
$breadcrumbPolygon: polygon( | ||
$euiSizeS 0%, | ||
100% 0%, | ||
calc(100% - #{$euiSizeS}) 100%, | ||
0% 100% | ||
); | ||
|
||
.osdHeaderBreadcrumbs { | ||
/* | ||
filter defines a custom filter effect by grouping atomic filter primitives! | ||
here we are using Gaussian filter with stdDeviation for applying | ||
border-radius on clipped background. | ||
*/ | ||
|
||
filter: url("../../public/assets/round_filter.svg#round"); | ||
|
||
.osdBreadcrumbs { | ||
clip-path: $breadcrumbPolygon; | ||
background-color: $osdHeaderBreadcrumbGrayBackground; | ||
padding: $euiSizeXS - 2.5 $euiSizeL - $euiSizeXS; | ||
|
||
&:first-child { | ||
clip-path: $firstBreadcrumbPolygon; | ||
} | ||
|
||
&:last-child { | ||
background-color: $osdHeaderBreadcrumbBlueBackground; | ||
} | ||
} | ||
|
||
.euiBreadcrumbSeparator { | ||
display: none; | ||
} | ||
|
||
.euiBreadcrumb__collapsedLink { | ||
color: $osdHeaderBreadcrumbCollapsedLink; | ||
background: $euiColorEmptyShade; | ||
} | ||
|
||
.euiPopover__anchor { | ||
padding: 0 $euiSizeS; | ||
} | ||
|
||
.euiBreadcrumb:not(.euiBreadcrumb:last-child) { | ||
margin-right: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters