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

fix: adapt project SCSS definitions in regards to sass '/' deprecation warnings #751

Merged
merged 1 commit into from
Jun 29, 2021

Conversation

shauke
Copy link
Collaborator

@shauke shauke commented Jun 28, 2021

PR Type

[x] Bugfix
[x] Build-related changes

What Is the Current Behavior?

Introduced by the the latest @angular-devkit/build-angular update that updates sass from 1.32.12 to 1.35.1 a lot of deprecation warnings where printed when building the project or running ng serve.

DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($spacer, 2)
More info and automated migrator: https://sass-lang.com/d/slash-div

What Is the New Behavior?

The project SCSS definitions were changed in regards to the sass '/' deprecation warnings.

Only Bootstrap SCSS compile warnings persist that result from the original Bootstrap definitions that cannot be changed in the project itself. Hopefully they will be fixed in the Bootstrap sources (see twbs/bootstrap#34353).

Does this PR Introduce a Breaking Change?

[x] No

Other Information

https://sass-lang.com/documentation/breaking-changes/slash-div
https://github.com/sass/dart-sass/blob/master/CHANGELOG.md#1330
twbs/bootstrap#34353

@shauke shauke added the dependencies Pull requests that update a dependency file label Jun 28, 2021
@shauke shauke added this to the 0.32 milestone Jun 28, 2021
@shauke shauke requested a review from SGrueber June 28, 2021 16:02
@shauke shauke self-assigned this Jun 28, 2021
…n warnings

- introduced by the the latest @angular-devkit/build-angular update that updates 'sass' from 1.32.12 to 1.35.1

DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($spacer, 2)
More info and automated migrator: https://sass-lang.com/d/slash-div
@shauke shauke force-pushed the bugfix/sass_deprecations branch from df9ac2d to b65daa4 Compare June 28, 2021 16:11
@shauke shauke merged commit 9ba3618 into develop Jun 29, 2021
@shauke shauke deleted the bugfix/sass_deprecations branch June 29, 2021 13:30
shauke added a commit that referenced this pull request Oct 29, 2021
* remove `@use 'sass:math';` and replace `math.div();`
* cleanup after temporary changes from #751

closes: #759

BREAKING CHANGE: We no longer use `@use 'sass:math';` and `math.div();` in our `.scss` files but instead switched to the new Bootstrap default way using `divide()`. This is more a note to check your styling customizations for possible adaptions. Both ways should still work together and adaptions are not required.
shauke added a commit that referenced this pull request Nov 10, 2021
)

* remove `@use 'sass:math';` and replace `math.div();`
* cleanup after temporary changes from #751

closes: #759

BREAKING CHANGE: We no longer use `@use 'sass:math';` and `math.div();` in our `.scss` files but instead switched to the new Bootstrap default way using `divide()`. This is more a note to check your styling customizations for possible adaptions. Both ways should still work together and adaptions are not required.
SGrueber pushed a commit that referenced this pull request May 19, 2022
)

* remove `@use 'sass:math';` and replace `math.div();`
* cleanup after temporary changes from #751

closes: #759

BREAKING CHANGE: We no longer use `@use 'sass:math';` and `math.div();` in our `.scss` files but instead switched to the new Bootstrap default way using `divide()`. This is more a note to check your styling customizations for possible adaptions. Both ways should still work together and adaptions are not required.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants