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

Replace Sass division symbol (/) with multiplication for better forward compatibility #302

Merged
merged 1 commit into from
Apr 4, 2022

Conversation

adamjohnson
Copy link
Contributor

Dart Sass division warning terminal screenshot

If you use Dart Sass to compile the Design System's Sass files, Dart Sass throws depreciation warnings about the / symbol. They advise us to use a new math.div() function or calc() to solve these warnings. Since we're not doing any hard math, simple multiplication seems like the best fix.

This change doesn't change any actual CSS, just the Sass. It should be good to merge.

Related to #273.

Also, Bootstrap used the / symbol up until v4.6.1. So, if you're looking to use Dart Sass with Bootstrap, it'd be a good idea to pull in the latest version of Bootstrap. FWIW, I use the latest version of Bootstrap v4.x.x on all my projects and have noticed zero regressions.

If there is no activity on this PR by 4/1/22, I will merge this PR myself.

…ward compatibility.

If you use Dart Sass to compile the Design System's Sass files, Dart Sass throws depreciation warnings about the `/` symbol. They advise us to use a new `math.div()` function or `calc()` to solve these warnings. Since we're not doing any hard math, simple multiplication seems like the best fix.

Related to #273.
@adamjohnson adamjohnson added the enhancement New feature or request label Mar 25, 2022
@adamjohnson adamjohnson requested a review from adamglenn March 25, 2022 17:12
@adamjohnson adamjohnson self-assigned this Mar 25, 2022
@adamjohnson adamjohnson merged commit a956bba into master Apr 4, 2022
@adamjohnson adamjohnson deleted the fix/sass-division-to-multiplication branch April 4, 2022 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant