Problem/Motivation
There are some line on the components files that show the following deprecated warning:
Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($spacer, 2) or calc($spacer / 2)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
62 │ margin-top: $spacer / 2;
│ ^^^^^^^^^^^
╵
../../contrib/bootstrap_barrio/scss/components/commerce.scss 62:17 @import
../../contrib/bootstrap_barrio/scss/barrio.scss 8:9 @import
scss/import.scss 15:9 @import
scss/style.scss 7:9 root stylesheet
Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($spacer, 2) or calc($spacer / 2)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
99 │ padding: $spacer/2 $spacer;
│ ^^^^^^^^^
╵
../../contrib/bootstrap_barrio/scss/components/commerce.scss 99:14 @import
../../contrib/bootstrap_barrio/scss/barrio.scss 8:9 @import
scss/import.scss 15:9 @import
scss/style.scss 7:9 root stylesheet
Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($spacer, 4) or calc($spacer / 4)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
110 │ padding: $spacer / 4;
│ ^^^^^^^^^^^
╵
../../contrib/bootstrap_barrio/scss/components/commerce.scss 110:14 @import
../../contrib/bootstrap_barrio/scss/barrio.scss 8:9 @import
scss/import.scss 15:9 @import
scss/style.scss 7:9 root stylesheet
Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($spacer, 2) or calc($spacer / 2)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
119 │ padding: $spacer/2 $spacer/4 !important;
│ ^^^^^^^^^
╵
../../contrib/bootstrap_barrio/scss/components/commerce.scss 119:16 @import
../../contrib/bootstrap_barrio/scss/barrio.scss 8:9 @import
scss/import.scss 15:9 @import
scss/style.scss 7:9 root stylesheet
Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($spacer, 4) or calc($spacer / 4)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
119 │ padding: $spacer/2 $spacer/4 !important;
│ ^^^^^^^^^
╵
../../contrib/bootstrap_barrio/scss/components/commerce.scss 119:26 @import
../../contrib/bootstrap_barrio/scss/barrio.scss 8:9 @import
scss/import.scss 15:9 @import
scss/style.scss 7:9 root stylesheet
Warning: 9 repetitive deprecation warnings omitted.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | patch-applied-cleanly.png | 69.55 KB | anoopsingh92 |
| #2 | Deprecation_Warning_Using_for_division_outside_of_calc-3295840-2.patch | 3.11 KB | maxmendez |
Issue fork bootstrap_barrio-3295840
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
maxmendez commentedHere an approach
Comment #4
anoopsingh92Comment #5
anoopsingh92Hi @MaxMendez, I reviewed your patch #2. It is applied successfully and looks good to me.
Thanks for the patch @Max.
Comment #6
anoopsingh92Comment #9
hatuhay commented