Skip to content

Commit

Permalink
refactor(Breadcrumbs)!: use gap property for gaps between breadcrumbs…
Browse files Browse the repository at this point in the history
… items instead of paddings (#1185)

Co-authored-by: Mr.Dr.Professor Patrick <[email protected]>
  • Loading branch information
2 people authored and amje committed Feb 1, 2024
1 parent cc201ca commit 122d077
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/components/Breadcrumbs/Breadcrumbs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,19 @@ $block: '.#{variables.$ns}breadcrumbs';
width: 100%;
min-height: 24px;
overflow: hidden;
gap: 4px;
}

&__item {
flex-shrink: 1;
padding: 4px 8px;
display: inline-block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;

&:focus-visible {
outline: 2px solid var(--g-color-line-focus);
outline-offset: -4px; // due to padding
border-radius: calc(
var(--g-focus-border-radius) + 4px
); // +4px as outline-offset is -4px
}

&_current {
padding: 0 8px;
border-radius: var(--g-focus-border-radius);
}

&_more {
Expand Down

0 comments on commit 122d077

Please sign in to comment.