7
7
import { BoolControl } from "../../controls/boolControl" ;
8
8
import { LabelControl } from "../../controls/labelControl" ;
9
9
import { BoolCodeControl , StringControl } from "../../controls/codeControl" ;
10
- import { PaddingControl } from "../../controls/paddingControl" ;
10
+ import { PaddingControl } from "../../controls/paddingControl" ;
11
11
import { MarginControl } from "../../controls/marginControl" ;
12
12
import {
13
13
ControlNode ,
@@ -65,8 +65,15 @@ export const getStyle = (
65
65
height: auto;
66
66
}
67
67
.ant-select-selection-search {
68
- padding: ${ style . padding } ;
68
+ padding: ${ style . padding } ;
69
69
}
70
+ .ant-select-selection-search-input {
71
+ font-family:${ ( style as SelectStyleType ) . fontFamily } !important;
72
+ font-size:${ ( style as SelectStyleType ) . textSize } !important;
73
+ font-weight:${ ( style as SelectStyleType ) . textWeight } ;
74
+ color:${ ( style as SelectStyleType ) . text } !important;
75
+ font-style:${ ( style as SelectStyleType ) . fontStyle } ;
76
+ }
70
77
.ant-select-selector::after,
71
78
.ant-select-selection-placeholder,
72
79
.ant-select-selection-item {
@@ -88,6 +95,7 @@ export const getStyle = (
88
95
.ant-select-selector {
89
96
background-color: ${ style . background } ;
90
97
border-color: ${ style . border } ;
98
+ border-width:${ ( style as SelectStyleType ) . borderWidth } ;
91
99
}
92
100
93
101
&.ant-select-focused,
@@ -101,18 +109,18 @@ export const getStyle = (
101
109
.ant-select-clear {
102
110
background-color: ${ style . background } ;
103
111
color: ${ style . text === "#222222"
104
- ? "#8B8FA3"
105
- : isDarkColor ( style . text )
106
- ? lightenColor ( style . text , 0.2 )
107
- : style . text } ;
112
+ ? "#8B8FA3"
113
+ : isDarkColor ( style . text )
114
+ ? lightenColor ( style . text , 0.2 )
115
+ : style . text } ;
108
116
}
109
117
110
118
.ant-select-clear:hover {
111
119
color: ${ style . text === "#222222"
112
- ? "#8B8FA3"
113
- : isDarkColor ( style . text )
114
- ? lightenColor ( style . text , 0.1 )
115
- : style . text } ;
120
+ ? "#8B8FA3"
121
+ : isDarkColor ( style . text )
122
+ ? lightenColor ( style . text , 0.1 )
123
+ : style . text } ;
116
124
}
117
125
118
126
&.ant-select-multiple .ant-select-selection-item {
@@ -160,7 +168,7 @@ const getDropdownStyle = (style: MultiSelectStyleType) => {
160
168
` ;
161
169
} ;
162
170
163
- const Select = styled ( AntdSelect ) < { $style : SelectStyleType & MultiSelectStyleType } > `
171
+ const Select = styled ( AntdSelect ) < { $style : SelectStyleType & MultiSelectStyleType } > `
164
172
width: 100%;
165
173
166
174
${ ( props ) => props . $style && getStyle ( props . $style ) }
@@ -197,7 +205,7 @@ export const SelectChildrenMap = {
197
205
inputValue : stateComp < string > ( "" ) , // user's input value when search
198
206
showSearch : BoolControl . DEFAULT_TRUE ,
199
207
viewRef : RefControl < BaseSelectRef > ,
200
- margin : MarginControl ,
208
+ margin : MarginControl ,
201
209
padding : PaddingControl ,
202
210
...SelectInputValidationChildren ,
203
211
...formDataChildren ,
@@ -235,8 +243,8 @@ export const SelectUIView = (
235
243
onSearch = {
236
244
props . showSearch
237
245
? ( value ) => {
238
- props . dispatch ( changeChildAction ( "inputValue" , value , false ) ) ;
239
- }
246
+ props . dispatch ( changeChildAction ( "inputValue" , value , false ) ) ;
247
+ }
240
248
: undefined
241
249
}
242
250
>
@@ -248,6 +256,7 @@ export const SelectUIView = (
248
256
label = { option . label }
249
257
disabled = { option . disabled }
250
258
key = { option . value }
259
+ style = { { fontFamily :"Montserrat" } }
251
260
>
252
261
< Wrapper className = "option-label" >
253
262
{ props . options . findIndex ( ( option ) => hasIcon ( option . prefixIcon ) ) > - 1 &&
0 commit comments