Skip to content

Commit

Permalink
fix: Change text color in disabled textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
NZ10387 committed Apr 17, 2024
1 parent 717272d commit d7dab01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions components/input/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,9 @@ const genAffixStyle: GenerateStyle<InputToken> = (token: InputToken) => {

[`> input${componentCls}`]: {
padding: 0,
},

[`> input${componentCls}, > textarea${componentCls}`]: {
fontSize: 'inherit',
border: 'none',
borderRadius: 0,
Expand Down
2 changes: 1 addition & 1 deletion components/input/style/variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const genDisabledStyle = (token: InputToken): CSSObject => ({
cursor: 'not-allowed',
opacity: 1,

'input[disabled]': {
[`input[disabled], textarea[disabled]`]: {
cursor: 'not-allowed',
},

Expand Down

0 comments on commit d7dab01

Please sign in to comment.