fix: input-number & mention text color not follow theme change (#38087)

This commit is contained in:
二货爱吃白萝卜 2022-10-19 10:30:22 +08:00 committed by GitHub
parent 0108d10eb2
commit a48bc3c466
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -153,6 +153,7 @@ const genInputNumberStyles: GenerateStyle<InputNumberToken> = (token: InputNumbe
outline: 0,
transition: `all ${motionDurationFast} linear`,
appearance: 'textfield',
color: token.colorText,
...genPlaceholderStyle(token.colorTextPlaceholder),
'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':

View File

@ -80,6 +80,8 @@ const genMentionsStyle: GenerateStyle<MentionsToken> = token => {
// ================= Input Area =================
[`> textarea, ${componentCls}-measure`]: {
color: colorText,
boxSizing: 'border-box',
minHeight: controlHeight - 2,
margin: 0,
padding: `${inputPaddingVertical}px ${inputPaddingHorizontal}px`,