mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
fix: Unified clear-icon positioning (#49718)
This commit is contained in:
parent
0502789bd1
commit
7df8ddb38a
@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user