Skip to content

Commit

Permalink
Remove bare value handling for perspective utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Mar 20, 2024
1 parent d25fe81 commit 711f001
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions packages/tailwindcss/src/utilities.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3142,10 +3142,6 @@ test('perspective', () => {
--perspective-normal: 500px;
}
.perspective-123 {
perspective: 123px;
}
.perspective-\\[456px\\] {
perspective: 456px;
}
Expand Down
4 changes: 0 additions & 4 deletions packages/tailwindcss/src/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1501,10 +1501,6 @@ export function createUtilities(theme: Theme) {
staticUtility('perspective-none', [['perspective', 'none']])
functionalUtility('perspective', {
themeKeys: ['--perspective'],
handleBareValue: ({ value }) => {
if (!Number.isInteger(Number(value))) return null
return `${value}px`
},
handle: (value) => [decl('perspective', value)],
})

Expand Down

0 comments on commit 711f001

Please sign in to comment.