Skip to content

Commit 5ec6608

Browse files
committed
Use .form-multiselect & .form-file classes where applicable
1 parent b221e81 commit 5ec6608

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const forms = plugin.withOptions(function (options) {
1313
}
1414

1515
const baseSelectors = {
16-
class: '.form-input, .form-textarea, .form-select',
16+
class: '.form-input, .form-textarea, .form-select, .form-multiselect',
1717
base:
1818
"[type='text'],[type='email'], [type='url'], [type='password'], [type='number'], [type='date'], [type='datetime-local'], [type='month'], [type='search'], [type='tel'], [type='time'], [type='week'], [multiple], textarea, select",
1919
}
@@ -81,7 +81,7 @@ const forms = plugin.withOptions(function (options) {
8181
'color-adjust': `exact`,
8282
},
8383

84-
[swap(`[multiple]`, `.form-select[multiple], .form-input[multiple]`)]: {
84+
[swap(`[multiple]`, `.form-multiselect, .form-input[multiple]`)]: {
8585
'background-image': 'initial',
8686
'background-position': 'initial',
8787
'background-repeat': 'unset',
@@ -180,7 +180,7 @@ const forms = plugin.withOptions(function (options) {
180180
'background-color': 'currentColor',
181181
},
182182

183-
[swap(`[type='file']`, `.form-input[type='file']`)]: {
183+
[swap(`[type='file']`, `.form-file`)]: {
184184
background: 'unset',
185185
'border-color': 'inherit',
186186
'border-width': '0',
@@ -190,7 +190,7 @@ const forms = plugin.withOptions(function (options) {
190190
'line-height': 'inherit',
191191
},
192192

193-
[swap(`[type='file']:focus`, `.form-input[type='file']:focus`)]: {
193+
[swap(`[type='file']:focus`, `.form-file:focus`)]: {
194194
outline: `1px solid ButtonText`,
195195
outline: `1px auto -webkit-focus-ring-color`,
196196
},

0 commit comments

Comments
 (0)