drop bare value support for translate-{axis}

This commit is contained in:
Robin Malfait 2024-03-20 16:04:22 +01:00
parent 7179a19517
commit d90d3bb60c
No known key found for this signature in database

View file

@ -1251,10 +1251,6 @@ export function createUtilities(theme: Theme) {
supportsNegative: true,
supportsFractions: true,
themeKeys: ['--translate', '--spacing'],
handleBareValue: ({ value }) => {
if (Number.isNaN(Number(value))) return null
return `${value}%`
},
handle,
})
utilities.static(`translate-${axis}-px`, (candidate) => {