Skip to content

Commit

Permalink
fix(preset-wind): background-position to background-repeat (#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunelson committed May 29, 2022
1 parent 896dad3 commit 2185315
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/preset-wind/src/rules/background.ts
Expand Up @@ -112,10 +112,10 @@ export const backgroundStyles: Rule[] = [
// repeats
['bg-repeat', { 'background-repeat': 'repeat' }],
['bg-no-repeat', { 'background-repeat': 'no-repeat' }],
['bg-repeat-x', { 'background-position': 'repeat-x' }],
['bg-repeat-y', { 'background-position': 'repeat-y' }],
['bg-repeat-round', { 'background-position': 'round' }],
['bg-repeat-space', { 'background-position': 'space' }],
['bg-repeat-x', { 'background-repeat': 'repeat-x' }],
['bg-repeat-y', { 'background-repeat': 'repeat-y' }],
['bg-repeat-round', { 'background-repeat': 'round' }],
['bg-repeat-space', { 'background-repeat': 'space' }],

// origins
['bg-origin-border', { 'background-origin': 'border-box' }],
Expand Down
2 changes: 1 addition & 1 deletion test/__snapshots__/preset-wind.test.ts.snap
Expand Up @@ -250,7 +250,7 @@ exports[`preset-wind > targets 1`] = `
.bg-bottom{background-position:bottom;}
.bg-right-bottom{background-position:right bottom;}
.bg-no-repeat{background-repeat:no-repeat;}
.bg-repeat-space{background-position:space;}
.bg-repeat-space{background-repeat:space;}
.bg-origin-border{background-origin:border-box;}
.svg\\\\:fill-red svg{--un-fill-opacity:1;fill:rgba(248,113,113,var(--un-fill-opacity));}
.object-none{object-fit:none;}
Expand Down

0 comments on commit 2185315

Please sign in to comment.