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

View file

@ -3500,6 +3500,9 @@ export function createUtilities(theme: Theme) {
})
functionalUtility('backdrop-opacity', {
// TODO: Do we want to remove this or not? Named opacity utilities (apart
// form like `opacity-disabled` do not make a lot of sense). Just bare
// values make more sense.
themeKeys: ['--backdrop-opacity', '--opacity'],
handleBareValue: ({ value }) => {
if (Number.isNaN(Number(value))) return null