Skip to content

Commit

Permalink
Fix deprecation warning in SCSS for / (#3612)
Browse files Browse the repository at this point in the history
Using / for division outside of calc() is deprecated and will be removed
in Dart Sass 2.0.0. See:

https://sass-lang.com/d/slash-div
  • Loading branch information
rakyi authored May 17, 2024
1 parent 719ebbe commit 0258fee
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "sass:math";

.radio {
$radio-size: 16px;

Expand Down Expand Up @@ -35,8 +37,8 @@
justify-content: center;

.inner {
width: $radio-size / 2;
height: $radio-size / 2;
width: math.div($radio-size, 2);
height: math.div($radio-size, 2);
background-color: $active-fill;
border-radius: 50%;
}
Expand Down

0 comments on commit 0258fee

Please sign in to comment.