fix: Unified clear-icon positioning (#49718)

This commit is contained in:
Wanpan 2024-07-04 15:25:09 +08:00 committed by GitHub
parent 0502789bd1
commit 7df8ddb38a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -809,7 +809,7 @@ const genTextAreaStyle: GenerateStyle<InputToken> = (token) => {
// Clear Icon
[`${componentCls}-clear-icon`]: {
position: 'absolute',
insetInlineEnd: token.paddingXS,
insetInlineEnd: token.paddingInline,
insetBlockStart: token.paddingXS,
},
@ -827,6 +827,14 @@ const genTextAreaStyle: GenerateStyle<InputToken> = (token) => {
},
},
},
[`&-affix-wrapper${componentCls}-affix-wrapper-sm`]: {
[`${componentCls}-suffix`]: {
[`${componentCls}-clear-icon`]: {
insetInlineEnd: token.paddingInlineSM,
},
},
},
},
};
};