Problem/Motivation
I created based on this theme, my custom theme. While working on it, I encountered an error returned by the SCSS compiler:
Deprecation Warning on line 31, column 17 of ../../contrib/bootstrap_barrio/scss/components/sidebar.scss:
This operation is parsed as:
0 - ($spacer)
but you may have intended it to mean:
0 (-($spacer))
Add a space after - to clarify that it's meant to be a binary operation, or wrap
it in parentheses to make it a unary operation. This will be an error in future
versions of Sass.
More info and automated migrator: https://sass-lang.com/d/strict-unary
╷
31 │ margin: 0 -($spacer);
│ ^^^^^^^^^^^^
╵
Proposed resolution
I created a patch to solve this problem.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | bootstrap_barrio.patch | 377 bytes | shwetaDevkate |
| #3 | bootstrap_barrio-sass-deprecation-warning-3315648.patch | 377 bytes | bronismateusz |
Issue fork bootstrap_barrio-3315648
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:
- 3315648-deprecation-warning-in
changes, plain diff MR !32
Comments
Comment #3
bronismateusz commentedComment #4
shwetaDevkate commentedComment #5
jurgenhaasBoth patches are the same, but they fix the issue correctly.
Comment #6
maxmendez commentedTested it and works correctly. Thanks for your work.
Comment #9
hatuhay commented