larsenwork / larsenwork/postcss-easing-gradients
BUG: Multiple backgrounds fails with wrong generated syntax of 1st
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
$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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the SCSS example from the issue and compare the generated multiple-background declaration with the expected commas. Trace the plugin's handling of a prepared gradient variable, then verify that the first gradient preserves commas without changing the second gradient.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, scss
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100