Skip to content

Commit

Permalink
chore: use math.div instead of division slash (#3035)
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver Schürch <[email protected]>
  • Loading branch information
gfellerph and oliverschuerch authored May 15, 2024
1 parent c14c338 commit 8bc46eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/styles/src/components/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
.btn-animated:not(.btn-link, .btn-tertiary) {
&::after {
right: button.$btn-padding-x-md - button.$btn-animation-distance-md -
(button.$btn-font-size-md * 2 / 3);
(math.div(button.$btn-font-size-md * 2, 3));
transform: translateX(button.$btn-border-width * -1);
}

Expand All @@ -188,7 +188,7 @@
button.$btn-animation-distance-map,
$size
) -
(map.get(button.$btn-font-size-map, $size) * 2 / 3);
(math.div(map.get(button.$btn-font-size-map, $size) * 2, 3));
}
}

Expand All @@ -212,7 +212,7 @@
&::after {
@include icon-mx.icon(2110);
left: button.$btn-padding-x-md - button.$btn-animation-distance-md -
(button.$btn-font-size-md * 2 / 3);
(math.div(button.$btn-font-size-md * 2, 3));
transform: translateX(button.$btn-border-width);
}

Expand All @@ -222,7 +222,7 @@
button.$btn-animation-distance-map,
$size
) -
(map.get(button.$btn-font-size-map, $size) * 2 / 3);
(math.div(map.get(button.$btn-font-size-map, $size) * 2, 3));
}
}

Expand Down

0 comments on commit 8bc46eb

Please sign in to comment.