Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for sass@1.33.0 #34068

Closed
wilo-ahadi opened this issue May 21, 2021 · 1 comment
Closed

Support for sass@1.33.0 #34068

wilo-ahadi opened this issue May 21, 2021 · 1 comment

Comments

@wilo-ahadi
Copy link

$value: if($value / 255 < .03928, $value / 255 / 12.92, nth($_luminance-list, $value + 1));

This code work fine for sass@^1.32.13

For sass@^1.33.0 support we need to use math.div($number1, $number2) for division : https://sass-lang.com/documentation/breaking-changes/slash-div

Or the Sass migrator to automatically update stylesheets to use math.div() and list.slash()
$ npm install -g sass-migrator
$ sass-migrator division **/*.scss

@mdo
Copy link
Member

mdo commented May 22, 2021

#34051

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants