Commit 8fcd7f2 1 parent 65b092a commit 8fcd7f2 Copy full SHA for 8fcd7f2
File tree 3 files changed +9
-4
lines changed
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 5
5
### Bug Fix
6
6
7
7
- Components: Fix ` Slot ` /` Fill ` Emotion ` StyleProvider ` ([ #38237 ] ( https://github.com/WordPress/gutenberg/pull/38237 ) )
8
+ - Reduce height and min-width of the reset button on ` ComboBoxControl ` for consistency. ([ #38020 ] ( https://github.com/WordPress/gutenberg/pull/38020 ) )
8
9
9
10
## 19.3.0 (2022-01-27)
10
11
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ const mapCountryOption = ( country ) => ( {
266
266
267
267
const countryOptions = countries . map ( mapCountryOption ) ;
268
268
269
- function CountryCodeComboboxControl ( ) {
269
+ function CountryCodeComboboxControl ( { allowReset } ) {
270
270
const [ value , setValue ] = useState ( null ) ;
271
271
272
272
return (
@@ -276,9 +276,13 @@ function CountryCodeComboboxControl() {
276
276
onChange = { setValue }
277
277
label = "Select a country"
278
278
options = { countryOptions }
279
+ allowReset = { allowReset }
279
280
/>
280
281
< p > Value: { value } </ p >
281
282
</ >
282
283
) ;
283
284
}
284
- export const _default = ( ) => < CountryCodeComboboxControl /> ;
285
+ export const _default = CountryCodeComboboxControl . bind ( { } ) ;
286
+ _default . args = {
287
+ allowReset : false ,
288
+ } ;
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ input.components-combobox-control__input[type="text"] {
40
40
41
41
.components-combobox-control__reset.components-button {
42
42
display : flex ;
43
- height : $grid-unit-30 ;
44
- min-width : $grid-unit-30 ;
43
+ height : $grid-unit-20 ;
44
+ min-width : $grid-unit-20 ;
45
45
padding : 0 ;
46
46
}
You can’t perform that action at this time.
0 commit comments