Skip to content

BUG: Multiple backgrounds fails with wrong generated syntax of 1st #16

@7iomka

Description

@7iomka
$bg-color: #181818;

$gradient-primary-raw: linear-gradient(
  0deg,
  $color-primary,
  $color-primary2
);

background-image: linear-gradient(to right, $bg-color, $bg-color), $gradient-primary-raw;

generate this
background-image: linear-gradient(0deg; #181818; #181818), ...correct second gradient here...

Expected code
background-image: linear-gradient(0deg, #181818, #181818), ...correct second gradient here...

How to fix that? I mean, what plugin replace , with ; ???
That occurs only if I use variable with prepared gradient inside background-image that have multiple backgrounds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions