Skip to content

Commit

Permalink
Remove webkit prefixed fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewarlow committed Jul 10, 2021
1 parent 3b5d12e commit 1567208
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
15 changes: 4 additions & 11 deletions src/jit/corePlugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,24 +61,17 @@ export default {
}),
])

addVariant('file-selector-button', [
transformAllSelectors((selector) => {
return updateAllClasses(selector, (className, { withPseudo }) => {
return withPseudo(
`file-selector-button${config('separator')}${className}`,
'::-webkit-file-upload-button'
)
})
}),
addVariant(
'file-selector-button',
transformAllSelectors((selector) => {
return updateAllClasses(selector, (className, { withPseudo }) => {
return withPseudo(
`file-selector-button${config('separator')}${className}`,
'::file-selector-button'
)
})
}),
])
})
)

addVariant(
'before',
Expand Down
8 changes: 0 additions & 8 deletions tests/jit/variants.test.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,6 @@
--tw-text-opacity: 1;
color: rgba(255, 255, 255, var(--tw-text-opacity));
}
.file-selector-button\:bg-blue-500::-webkit-file-upload-button {
--tw-bg-opacity: 1;
background-color: rgba(59, 130, 246, var(--tw-bg-opacity));
}
.file-selector-button\:text-white::-webkit-file-upload-button {
--tw-text-opacity: 1;
color: rgba(255, 255, 255, var(--tw-text-opacity));
}
.file-selector-button\:bg-blue-500::file-selector-button {
--tw-bg-opacity: 1;
background-color: rgba(59, 130, 246, var(--tw-bg-opacity));
Expand Down

0 comments on commit 1567208

Please sign in to comment.