Page 1 of 1

Using / for division is deprecated and will be removed in Dart Sass 2.0.0.

Posted: 22 Sep 2021, 21:45
by justas
Hello,

in latest diamond version I'm getting this warning when compilling sass. Can you fix it?

Code: Select all

: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div(nth($inputPadding, 1), 2)

More info and automated migrator: https://sass-lang.com/d/slash-div

          padding: nth($inputPadding, 1)/2 nth($inputPadding, 2);
                     ^^^^^^^^^^^^^^^^^^^^^^^
    resources/diamond/sass/theme/designer/components/input/_autocomplete.scss 13:18  @import
    resources/diamond/sass/theme/designer/_components.scss 6:9                       @import
    resources/diamond/sass/theme/_theme_light.scss 3:9                               @import
    resources/diamond/theme/purple/theme-light.scss 10:9                             @import
    resources/css/App.scss 3:9                                                       root stylesheet


Re: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.

Posted: 27 Sep 2021, 14:42
by tugce.kucukoglu
Hello,

Yes, it is a warning. It doesn't break anything. But I'll try to fix it.

Thanks for your understanding.

Best,