Skip to content

Commit

Permalink
fix(preset-wind): Solved linear-gradient not defaulting to percentage (
Browse files Browse the repository at this point in the history
  • Loading branch information
Lingyan000 committed Apr 10, 2023
1 parent 6556a7c commit cea047a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/preset-wind/src/rules/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function bgGradientColorResolver() {
return {
'--un-gradient-from-position': '0%',
'--un-gradient-from': `${colorString} var(--un-gradient-from-position)`,
'--un-gradient-to-position': '100%',
'--un-gradient-to': `${bgGradientToValue(cssColor)} var(--un-gradient-to-position)`,
'--un-gradient-stops': 'var(--un-gradient-from), var(--un-gradient-to)',
}
Expand Down

0 comments on commit cea047a

Please sign in to comment.