Skip to content

Commit

Permalink
fix(styles): small fix when the badge is dismissible and has a nested…
Browse files Browse the repository at this point in the history
… badge
  • Loading branch information
davidritter-dotcom committed Aug 31, 2023
1 parent dd5d2c7 commit f811b40
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/styles/src/placeholders/badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@
padding-right: 24px/16px + badge.$badge-padding-x;
}

&:has(> .badge) {
padding-right: 24px/16px + badge.$badge-padding-x;
}

&:has(> .badge + .btn-close) {
padding-right: 48px/16px + badge.$badge-padding-x;
}

> .badge {
padding: $size-micro;
height: badge.$badge-nested-height;
Expand All @@ -38,6 +46,9 @@
background-color: badge.$badge-nested-bg-color;
border-color: badge.$badge-nested-border-color;
font-size: badge.$badge-nested-font-size;
&:has(+ .btn-close) {
right: badge.$badge-padding-x + 24px/16px;
}
}

> .badge,
Expand Down

0 comments on commit f811b40

Please sign in to comment.