File tree Expand file tree Collapse file tree 3 files changed +35
-20
lines changed Expand file tree Collapse file tree 3 files changed +35
-20
lines changed Original file line number Diff line number Diff line change @@ -69,11 +69,16 @@ const PluginCard = ({
69
69
70
70
{ docLink && (
71
71
< div className = "flexbox dc__gap-4 dc__visible-hover--child dc__align-items-center" >
72
- < a href = { docLink } className = "anchor" target = "_blank" rel = "noopener noreferrer" >
72
+ < a
73
+ href = { docLink }
74
+ className = "anchor fs-12 fw-6 lh-20"
75
+ target = "_blank"
76
+ rel = "noopener noreferrer"
77
+ >
73
78
Learn more
74
79
</ a >
75
80
76
- < ICBookOpen className = "icon-dim-12 dc__no-shrink" />
81
+ < ICBookOpen className = "icon-dim-12 dc__no-shrink scb-5 " />
77
82
</ div >
78
83
) }
79
84
</ div >
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ const PluginTagSelect = ({
91
91
controlShouldRenderValue = { false }
92
92
hideSelectedOptions = { false }
93
93
blurInputOnSelect = { false }
94
- maxMenuHeight = { 250 }
94
+ maxMenuHeight = { 200 }
95
95
placeholder = "Select tags"
96
96
inputId = "plugin-tag-select"
97
97
className = "w-150"
Original file line number Diff line number Diff line change @@ -192,23 +192,33 @@ export const commonSelectStyles = getCommonSelectStyle()
192
192
export const MenuListWithApplyButton = ( {
193
193
handleApplyFilter,
194
194
...props
195
- } : MenuListProps & { handleApplyFilter : ( ) => void } ) => (
196
- < >
197
- < components . MenuList { ...props } />
198
- { props . selectProps . options . length > 0 && (
199
- < div className = "p-8 dc__position-sticky dc__bottom-0 dc__border-top-n1 bcn-0 dc__bottom-radius-4" >
200
- < button
201
- type = "button"
202
- className = "dc__unset-button-styles w-100 br-4 h-28 flex bcb-5 cn-0 fw-6 lh-28 fs-12 h-28 br-4 pt-5 pr-12 pb-5 pl-12"
203
- onClick = { handleApplyFilter }
204
- aria-label = "Apply filters"
205
- >
206
- Apply
207
- </ button >
208
- </ div >
209
- ) }
210
- </ >
211
- )
195
+ } : MenuListProps & { handleApplyFilter : ( ) => void } ) => {
196
+ const handleApplyClick = ( ) => {
197
+ props . selectProps . onInputChange ( '' , {
198
+ action : 'set-value' ,
199
+ prevInputValue : props . selectProps . inputValue ,
200
+ } )
201
+ handleApplyFilter ( )
202
+ }
203
+
204
+ return (
205
+ < >
206
+ < components . MenuList { ...props } />
207
+ { props . selectProps . options . length > 0 && (
208
+ < div className = "p-8 dc__position-sticky dc__bottom-0 dc__border-top-n1 bcn-0 dc__bottom-radius-4" >
209
+ < button
210
+ type = "button"
211
+ className = "dc__unset-button-styles w-100 br-4 h-28 flex bcb-5 cn-0 fw-6 lh-28 fs-12 h-28 br-4 pt-5 pr-12 pb-5 pl-12"
212
+ onClick = { handleApplyClick }
213
+ aria-label = "Apply filters"
214
+ >
215
+ Apply
216
+ </ button >
217
+ </ div >
218
+ ) }
219
+ </ >
220
+ )
221
+ }
212
222
213
223
export const MultiSelectValueContainer = ( {
214
224
title,
You can’t perform that action at this time.
0 commit comments