Skip to content

Commit 1567208

Browse files
committed
Remove webkit prefixed fallback
1 parent 3b5d12e commit 1567208

File tree

2 files changed

+4
-19
lines changed

2 files changed

+4
-19
lines changed

src/jit/corePlugins.js

+4-11
Original file line numberDiff line numberDiff line change
@@ -61,24 +61,17 @@ export default {
6161
}),
6262
])
6363

64-
addVariant('file-selector-button', [
65-
transformAllSelectors((selector) => {
66-
return updateAllClasses(selector, (className, { withPseudo }) => {
67-
return withPseudo(
68-
`file-selector-button${config('separator')}${className}`,
69-
'::-webkit-file-upload-button'
70-
)
71-
})
72-
}),
64+
addVariant(
65+
'file-selector-button',
7366
transformAllSelectors((selector) => {
7467
return updateAllClasses(selector, (className, { withPseudo }) => {
7568
return withPseudo(
7669
`file-selector-button${config('separator')}${className}`,
7770
'::file-selector-button'
7871
)
7972
})
80-
}),
81-
])
73+
})
74+
)
8275

8376
addVariant(
8477
'before',

tests/jit/variants.test.css

-8
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,6 @@
156156
--tw-text-opacity: 1;
157157
color: rgba(255, 255, 255, var(--tw-text-opacity));
158158
}
159-
.file-selector-button\:bg-blue-500::-webkit-file-upload-button {
160-
--tw-bg-opacity: 1;
161-
background-color: rgba(59, 130, 246, var(--tw-bg-opacity));
162-
}
163-
.file-selector-button\:text-white::-webkit-file-upload-button {
164-
--tw-text-opacity: 1;
165-
color: rgba(255, 255, 255, var(--tw-text-opacity));
166-
}
167159
.file-selector-button\:bg-blue-500::file-selector-button {
168160
--tw-bg-opacity: 1;
169161
background-color: rgba(59, 130, 246, var(--tw-bg-opacity));

0 commit comments

Comments
 (0)