Skip to content

Commit

Permalink
feat(Breadcrumb): correct gap between items and fix overlapping focus…
Browse files Browse the repository at this point in the history
… ring (#2917)

* Distance between breadcrumbs increased to match design
* Fixed the left padding in collapsed mode. 

[Slack
Thread](https://dnb-it.slack.com/archives/CMXABCHEY/p1699349835359029).
  • Loading branch information
snorrekim authored Nov 24, 2023
1 parent f5a5382 commit 6252458
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 11 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,7 @@ button.dnb-button::-moz-focus-inner {
list-style: none;
flex-flow: row wrap;
align-items: center;
gap: 1.5rem;
}
.dnb-breadcrumb__item__span {
display: flex;
Expand All @@ -728,12 +729,8 @@ button.dnb-button::-moz-focus-inner {
padding: 0.5rem 0;
}
.dnb-breadcrumb__item__span__icon {
margin-left: calc(var(--button-icon-size) / 2);
margin-right: 0.5rem;
}
.dnb-breadcrumb__item:not(:first-of-type) .dnb-button.dnb-button--has-text {
padding-left: 0.5rem;
}
.dnb-breadcrumb__animation {
display: flex;
flex-direction: column;
Expand All @@ -755,5 +752,6 @@ button.dnb-button::-moz-focus-inner {
align-items: flex-start;
margin: 0.5rem 0;
margin-left: 1.5rem;
gap: 0;
}"
`;
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

flex-flow: row wrap;
align-items: center;
gap: 1.5rem;
}

&__item {
Expand All @@ -36,18 +37,11 @@

// To match the other tertiary buttons
&__icon {
margin-left: calc(var(--button-icon-size) / 2);
margin-right: 0.5rem;
}
}
}

&__item:not(:first-of-type) {
.dnb-button.dnb-button--has-text {
padding-left: 0.5rem;
}
}

&__animation {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -76,5 +70,6 @@

margin: 0.5rem 0;
margin-left: 1.5rem;
gap: 0;
}
}

0 comments on commit 6252458

Please sign in to comment.