Skip to content

Commit

Permalink
fix: excessive CSS overrides [ci visual]
Browse files Browse the repository at this point in the history
  • Loading branch information
g-cheishvili committed Oct 25, 2023
1 parent fbb966a commit 3ba3c5b
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions packages/styles/src/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,17 @@ $btp-button-block: #{$block-button}--btp;
}

@mixin btp-badge() {
@include base-badge() {
@include fd-reset();
@include fd-set-square(0.625rem);
@include fd-set-position-right(-0.125rem);

top: -0.125rem;
position: absolute;
border-radius: 100%;
background: var(--sapContent_BadgeBackground);
border: 0.0625rem solid var(--fdButton_ToolHeader_Badge_Border_Color);
color: var(--sapContent_BadgeBackground);
overflow: hidden;
}
@include fd-reset-paddings();
@include fd-set-square(0.625rem);
@include fd-set-position-right(-0.125rem);

top: -0.125rem;
position: absolute;
border-radius: 100%;
background: var(--sapContent_BadgeBackground);
border: 0.0625rem solid var(--fdButton_ToolHeader_Badge_Border_Color);
color: var(--sapContent_BadgeBackground);
overflow: hidden;
}

@mixin badge() {
Expand Down

0 comments on commit 3ba3c5b

Please sign in to comment.