Skip to content

Commit 2626d3e

Browse files
committed
Don't add "undo" styles when using class strategy
1 parent 224e966 commit 2626d3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const forms = plugin.withOptions(function (options = { strategy: 'class' }) {
9898
},
9999
{
100100
base: ['[multiple]'],
101-
class: ['.form-multiselect'],
101+
class: null,
102102
styles: {
103103
'background-image': 'initial',
104104
'background-position': 'initial',
@@ -228,7 +228,7 @@ const forms = plugin.withOptions(function (options = { strategy: 'class' }) {
228228
},
229229
{
230230
base: [`[type='file']`],
231-
class: ['.form-file'],
231+
class: null,
232232
styles: {
233233
background: 'unset',
234234
'border-color': 'inherit',
@@ -241,7 +241,7 @@ const forms = plugin.withOptions(function (options = { strategy: 'class' }) {
241241
},
242242
{
243243
base: [`[type='file']:focus`],
244-
class: ['.form-file:focus'],
244+
class: null,
245245
styles: {
246246
outline: `1px solid ButtonText`,
247247
outline: `1px auto -webkit-focus-ring-color`,

0 commit comments

Comments
 (0)