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 16, 2024
1 parent 717272d commit ab1b083
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/input/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,7 @@ const genTextAreaStyle: GenerateStyle<InputToken> = (token) => {
border: 'none',
outline: 'none',
background: 'transparent',
color: 'inherit',

'&:focus': {
boxShadow: 'none !important',
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 ab1b083

Please sign in to comment.