|
170 | 170 | .@{ant-prefix}-select {
|
171 | 171 | margin: -(@input-padding-vertical-base + 1px) (-@input-padding-horizontal-base);
|
172 | 172 |
|
173 |
| - .@{ant-prefix}-select-selection { |
174 |
| - margin: -1px; |
| 173 | + &.@{ant-prefix}-select-single:not(.@{ant-prefix}-select-customize-input) |
| 174 | + .@{ant-prefix}-select-selector { |
175 | 175 | background-color: inherit;
|
176 | 176 | border: @border-width-base @border-style-base transparent;
|
177 | 177 | box-shadow: none;
|
178 | 178 | }
|
179 | 179 |
|
180 | 180 | &-open,
|
181 | 181 | &-focused {
|
182 |
| - .@{ant-prefix}-select-selection { |
| 182 | + .@{ant-prefix}-select-selector { |
183 | 183 | color: @primary-color;
|
184 | 184 | }
|
185 | 185 | }
|
|
204 | 204 | border-bottom-right-radius: 0;
|
205 | 205 |
|
206 | 206 | // Reset Select's style in addon
|
207 |
| - .@{ant-prefix}-select .@{ant-prefix}-select-selection { |
| 207 | + .@{ant-prefix}-select .@{ant-prefix}-select-selector { |
208 | 208 | border-top-right-radius: 0;
|
209 | 209 | border-bottom-right-radius: 0;
|
210 | 210 | }
|
|
236 | 236 | border-bottom-left-radius: 0;
|
237 | 237 |
|
238 | 238 | // Reset Select's style in addon
|
239 |
| - .@{ant-prefix}-select .@{ant-prefix}-select-selection { |
| 239 | + .@{ant-prefix}-select .@{ant-prefix}-select-selector { |
240 | 240 | border-top-left-radius: 0;
|
241 | 241 | border-bottom-left-radius: 0;
|
242 | 242 | }
|
|
254 | 254 | }
|
255 | 255 |
|
256 | 256 | // Fix https://github.com/ant-design/ant-design/issues/5754
|
257 |
| - &-lg .@{ant-prefix}-select-selection--single { |
| 257 | + &-lg .@{ant-prefix}-select-single .@{ant-prefix}-select-selector { |
258 | 258 | height: @input-height-lg;
|
259 | 259 | }
|
260 | 260 |
|
261 |
| - &-sm .@{ant-prefix}-select-selection--single { |
| 261 | + &-sm .@{ant-prefix}-select-single .@{ant-prefix}-select-selector { |
262 | 262 | height: @input-height-sm;
|
263 | 263 | }
|
264 | 264 |
|
|
304 | 304 | }
|
305 | 305 |
|
306 | 306 | // reset border for Select, DatePicker, AutoComplete, Cascader, Mention, TimePicker, Input
|
307 |
| - & > .@{ant-prefix}-select > .@{ant-prefix}-select-selection, |
| 307 | + & > .@{ant-prefix}-select > .@{ant-prefix}-select-selector, |
308 | 308 | & > .@{ant-prefix}-calendar-picker .@{ant-prefix}-input,
|
309 | 309 | & > .@{ant-prefix}-select-auto-complete .@{ant-prefix}-input,
|
310 | 310 | & > .@{ant-prefix}-cascader-picker .@{ant-prefix}-input,
|
|
328 | 328 | }
|
329 | 329 |
|
330 | 330 | & > *:first-child,
|
331 |
| - & > .@{ant-prefix}-select:first-child > .@{ant-prefix}-select-selection, |
| 331 | + & > .@{ant-prefix}-select:first-child > .@{ant-prefix}-select-selector, |
332 | 332 | & > .@{ant-prefix}-calendar-picker:first-child .@{ant-prefix}-input,
|
333 | 333 | & > .@{ant-prefix}-select-auto-complete:first-child .@{ant-prefix}-input,
|
334 | 334 | & > .@{ant-prefix}-cascader-picker:first-child .@{ant-prefix}-input,
|
|
339 | 339 | }
|
340 | 340 |
|
341 | 341 | & > *:last-child,
|
342 |
| - & > .@{ant-prefix}-select:last-child > .@{ant-prefix}-select-selection, |
| 342 | + & > .@{ant-prefix}-select:last-child > .@{ant-prefix}-select-selector, |
343 | 343 | & > .@{ant-prefix}-calendar-picker:last-child .@{ant-prefix}-input,
|
344 | 344 | & > .@{ant-prefix}-select-auto-complete:last-child .@{ant-prefix}-input,
|
345 | 345 | & > .@{ant-prefix}-cascader-picker:last-child .@{ant-prefix}-input,
|
|
0 commit comments