Skip to content

Commit 6fac5c2

Browse files
fix(Select): correct clear icon position in sm size (ant-design#56525)
* fix(Select): correct clear icon position in sm size * fix: add test case and use --select-padding-horizontal * test(Select): move test case to clear icon position * test(Select): remove unused test case --------- Co-authored-by: 遇见同学 <1875694521@qq.com>
1 parent ee8cc27 commit 6fac5c2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

components/select/style/select-input.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,10 @@ const genSelectInputStyle: GenerateStyle<SelectToken> = (token) => {
231231
'--select-height': token.controlHeightSM,
232232
'--select-padding-horizontal': calc(token.paddingXS).sub(token.lineWidth).equal(),
233233
'--select-border-radius': token.borderRadiusSM,
234+
235+
[`${componentCls}-clear`]: {
236+
insetInlineEnd: 'var(--select-padding-horizontal)',
237+
},
234238
},
235239

236240
'&-lg': {

0 commit comments

Comments
 (0)