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

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

Open
7iomka opened this issue Jan 27, 2021 · 0 comments
Open

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

7iomka opened this issue Jan 27, 2021 · 0 comments

Comments

@7iomka
Copy link

7iomka commented Jan 27, 2021

$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.

@7iomka 7iomka changed the title Multiple backgrounds fails with wrong generated syntax BUG: Multiple backgrounds fails with wrong generated syntax Jan 27, 2021
@7iomka 7iomka changed the title BUG: Multiple backgrounds fails with wrong generated syntax BUG: Multiple backgrounds fails with wrong generated syntax of 1st Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant