Skip to content

Commit

Permalink
Adjust OuiSimplifiedBreadcrumbs alignment, colors, and tailing slash
Browse files Browse the repository at this point in the history
Signed-off-by: Miki <miki@amazon.com>
  • Loading branch information
AMoo-Miki committed Sep 13, 2024
1 parent 2e42a25 commit 135d567
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

- Fix `compressed` styling of OuiDatePickerRange ([#1380](https://github.com/opensearch-project/oui/pull/1380))
- Make OuiSearchBar consume a provided `className` ([#1381](https://github.com/opensearch-project/oui/pull/1381))
- Adjust OuiSimplifiedBreadcrumbs alignment, colors, and tailing slash ([#1401](https://github.com/opensearch-project/oui/pull/1401))

### 🚞 Infrastructure

Expand Down
22 changes: 15 additions & 7 deletions src/components/breadcrumbs/_breadcrumbs_simplified.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,27 @@

.ouiSimplifiedBreadcrumbs {
@include ouiFontSizeS;
margin-bottom: -$ouiSizeXS; /* 1 */
display: flex;
align-items: center;
flex-wrap: wrap;
min-width: 0; // Ensure it shrinks if the window is narrow
margin-left: 0;

.euiLink.euiLink--text:focus {
animation: none;
background: none;
}
}

.ouiSimplifiedBreadcrumb {
display: inline-block;
color: $ouiLinkColor !important; // sass-lint:disable-line no-important
margin-right: $ouiBreadcrumbSpacing;

&.euiLink {
line-height: inherit;
font-weight: inherit;
color: $ouiLinkColor !important; // sass-lint:disable-line no-important
}
}

.ouiSimplifiedBreadcrumb--collapsed {
Expand Down Expand Up @@ -77,9 +86,8 @@
transform: translateY(-1px) rotate(15deg);
background: $ouiColorLightShade;
color: $ouiColorDisabledText;
}

.euiLink.euiSimplifiedBreadcrumb {
line-height: inherit;
font-weight: inherit;
}
&:last-child {
display: none;
}
}

0 comments on commit 135d567

Please sign in to comment.