File tree 2 files changed +26
-1
lines changed
2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const {
11
11
const { addVariants } = require ( './variants' ) ;
12
12
13
13
module . exports = plugin . withOptions ( ( options = { } ) => tailwind => {
14
- let preferredStrategy = options . preferredStrategy ?? 'standard' ;
14
+ let preferredStrategy = options . preferredStrategy ?? options . preferredstrategy ?? 'standard' ;
15
15
16
16
if ( preferredStrategy !== 'standard' && preferredStrategy !== 'pseudoelements' ) {
17
17
// eslint-disable-next-line no-console
Original file line number Diff line number Diff line change @@ -192,6 +192,31 @@ describe('it limits scrollbar properties to Firefox when pseudoelements are pref
192
192
}"
193
193
` ) ;
194
194
} ) ;
195
+
196
+ test ( 'as lowercase' , async ( ) => {
197
+ const css = await generatePluginCss ( 'scrollbar-none.html' , {
198
+ pluginOptions : '{ preferredstrategy: "pseudoelements" }'
199
+ } ) ;
200
+
201
+ expect ( css ) . toMatchInlineSnapshot ( `
202
+ ".scrollbar-none {
203
+ @supports (-moz-appearance:none) {
204
+ scrollbar-width: none;
205
+ }
206
+ &::-webkit-scrollbar {
207
+ display: none;
208
+ }
209
+ }
210
+ @layer base {
211
+ * {
212
+ @supports (-moz-appearance:none) {
213
+ scrollbar-color: initial;
214
+ scrollbar-width: initial;
215
+ }
216
+ }
217
+ }"
218
+ ` ) ;
219
+ } ) ;
195
220
} ) ;
196
221
197
222
test ( 'it generates scrollbar track utilities' , async ( ) => {
You can’t perform that action at this time.
0 commit comments