From 0258feecc886300455307e52f602254a7954beca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ra=C4=8D=C3=A1k?= Date: Fri, 17 May 2024 16:02:22 +0200 Subject: [PATCH] Fix deprecation warning in SCSS for / (#3612) 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 --- .../@ourworldindata/grapher/src/controls/RadioButton.scss | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/@ourworldindata/grapher/src/controls/RadioButton.scss b/packages/@ourworldindata/grapher/src/controls/RadioButton.scss index 2295366d2cb..bc5444ea571 100644 --- a/packages/@ourworldindata/grapher/src/controls/RadioButton.scss +++ b/packages/@ourworldindata/grapher/src/controls/RadioButton.scss @@ -1,3 +1,5 @@ +@use "sass:math"; + .radio { $radio-size: 16px; @@ -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%; }