Skip to content

Commit

Permalink
choose backgroundSize over backgroundPosition
Browse files Browse the repository at this point in the history
Ensure that `backgroundColor` can take any value
  • Loading branch information
RobinMalfait committed Sep 23, 2022
1 parent 449c834 commit c500d8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/corePlugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,7 @@ export let corePlugins = {
})
},
},
{ values: flattenColorPalette(theme('backgroundColor')), type: 'color' }
{ values: flattenColorPalette(theme('backgroundColor')), type: ['color', 'any'] }
)
},

Expand Down Expand Up @@ -1482,7 +1482,7 @@ export let corePlugins = {
},

backgroundSize: createUtilityPlugin('backgroundSize', [['bg', ['background-size']]], {
type: ['lookup', 'length', 'percentage'],
type: ['lookup', ['length', { disambiguate: true }], 'percentage'],
}),

backgroundAttachment: ({ addUtilities }) => {
Expand Down

0 comments on commit c500d8a

Please sign in to comment.