Skip to content

Commit

Permalink
Fix deprecation warning in SCSS for /
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 committed May 16, 2024
1 parent e24de9c commit fa5ad6e
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 fa5ad6e

Please sign in to comment.