Skip to content

Commit

Permalink
feat: reduce focus effect overlap. Fixed collapsed alignement
Browse files Browse the repository at this point in the history
  • Loading branch information
snorrekim committed Nov 17, 2023
1 parent ef83713 commit 270279d
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 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.
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: 0.5rem;
}
.dnb-breadcrumb__item__span {
display: flex;
Expand All @@ -728,11 +729,13 @@ 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__item .dnb-button.dnb-button--has-text::before {
--button-tertiary-focus-right: -0.5rem;
}
.dnb-breadcrumb__item:not(:first-of-type) .dnb-button.dnb-button--has-text::before {
--button-tertiary-focus-left: -0.25rem;
}
.dnb-breadcrumb__animation {
display: flex;
Expand All @@ -755,5 +758,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: 0.5rem;
}

&__item {
Expand All @@ -36,15 +37,16 @@

// 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;
.dnb-button.dnb-button--has-text::before {
--button-tertiary-focus-right: -0.5rem;
}

&:not(:first-of-type) .dnb-button.dnb-button--has-text::before {
--button-tertiary-focus-left: -0.25rem;
}
}

Expand Down Expand Up @@ -76,5 +78,6 @@

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

0 comments on commit 270279d

Please sign in to comment.