fix: textarea reset style (#39118)

close #39099
close #39113
This commit is contained in:
afc163 2022-11-30 17:32:02 +08:00 committed by GitHub
parent 47b8e5aced
commit aa92f02911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -180,12 +180,7 @@ export const genBasicInputStyle = (token: InputToken): CSSObject => ({
lineHeight: token.lineHeight,
verticalAlign: 'bottom',
transition: `all ${token.motionDurationSlow}, height 0s`,
},
'&-textarea': {
'&-rtl': {
direction: 'rtl',
},
resize: 'vertical',
},
// Size
@ -196,9 +191,14 @@ export const genBasicInputStyle = (token: InputToken): CSSObject => ({
...genInputSmallStyle(token),
},
// RTL
'&-rtl': {
direction: 'rtl',
},
'&-textarea-rtl': {
direction: 'rtl',
},
});
export const genInputGroupStyle = (token: InputToken): CSSObject => {