Skip to content

Commit 61dbffd

Browse files
Update packages/tailwindcss/src/utilities.ts
Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
1 parent 531201b commit 61dbffd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/tailwindcss/src/utilities.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -433,12 +433,9 @@ export function createUtilities(theme: Theme) {
433433
if (!value?.includes('/') && candidate.modifier) return
434434
}
435435

436-
if (value === null && !negative && desc.staticValues) {
436+
if (value === null && !negative && desc.staticValues && !candidate.modifier) {
437437
let fallback = desc.staticValues[candidate.value.value]
438-
if (fallback) {
439-
if (candidate.modifier) return
440-
return fallback
441-
}
438+
if (fallback) return fallback
442439
}
443440
}
444441

0 commit comments

Comments
 (0)