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.

Command icon 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

bronisMateusz created an issue. See original summary.

bronismateusz’s picture

shwetaDevkate’s picture

StatusFileSize
new377 bytes
jurgenhaas’s picture

Version: 5.5.6 » 5.5.x-dev
Status: Active » Reviewed & tested by the community

Both patches are the same, but they fix the issue correctly.

maxmendez’s picture

Tested it and works correctly. Thanks for your work.

hatuhay’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.