File tree 3 files changed +25
-3
lines changed
3 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
- - Nothing yet!
10
+ ### Fixed
11
+
12
+ - Remove chevron for selects with a non-default size ([ #137 ] ( https://github.com/tailwindlabs/tailwindcss-forms/pull/137 ) )
11
13
12
14
## [ 0.5.3] - 2022-09-02
13
15
Original file line number Diff line number Diff line change @@ -102,6 +102,16 @@ <h2 class="text-2xl font-bold">Reset styles</h2>
102
102
< option > Option 2</ option >
103
103
</ select >
104
104
</ label >
105
+ < label class ="block ">
106
+ < span class ="text-gray-700 "> Select (single, with size)</ span >
107
+ < select class ="form-select block w-full mt-1 " size ="3 ">
108
+ < option > Option 1</ option >
109
+ < option > Option 2</ option >
110
+ < option > Option 3</ option >
111
+ < option > Option 4</ option >
112
+ < option > Option 5</ option >
113
+ </ select >
114
+ </ label >
105
115
< label class ="block ">
106
116
< span class ="text-gray-700 "> Select (multiple)</ span >
107
117
< select class ="form-multiselect block w-full mt-1 " multiple >
@@ -112,6 +122,16 @@ <h2 class="text-2xl font-bold">Reset styles</h2>
112
122
< option > Option 5</ option >
113
123
</ select >
114
124
</ label >
125
+ < label class ="block ">
126
+ < span class ="text-gray-700 "> Select (multiple, with size)</ span >
127
+ < select class ="form-multiselect block w-full mt-1 " multiple size ="3 ">
128
+ < option > Option 1</ option >
129
+ < option > Option 2</ option >
130
+ < option > Option 3</ option >
131
+ < option > Option 4</ option >
132
+ < option > Option 5</ option >
133
+ </ select >
134
+ </ label >
115
135
< label class ="block ">
116
136
< span class ="text-gray-700 "> Textarea</ span >
117
137
< textarea
Original file line number Diff line number Diff line change @@ -143,8 +143,8 @@ const forms = plugin.withOptions(function (options = { strategy: undefined }) {
143
143
} ,
144
144
} ,
145
145
{
146
- base : [ '[multiple]' ] ,
147
- class : null ,
146
+ base : [ '[multiple]' , '[size]:where(select:not([size="1"]))' ] ,
147
+ class : [ '.form-select:where([size]:not([size="1"]))' ] ,
148
148
styles : {
149
149
'background-image' : 'initial' ,
150
150
'background-position' : 'initial' ,
You can’t perform that action at this time.
0 commit comments