Skip to content

Commit

Permalink
fix(input): fix input disabled border style (#2341)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzcr authored Oct 21, 2024
1 parent 5661ab5 commit 3175340
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/theme/src/textarea/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

&.is-disabled &__inner {
background-color: var(--tv-Textarea-disabled-bg-color);
border-color: var(--tv-Textarea-border-color);
border-color: var(--tv-Textarea-disabled-border-color);
color: var(--tv-Textarea-disabled-text-color);
cursor: not-allowed;
.placeholder(@color: var(--tv-Textarea-placeholder-text-color));
Expand All @@ -72,7 +72,7 @@
}

&:hover {
border-color: var(--tv-Textarea-border-color);
border-color: var(--tv-Textarea-disabled-border-color);
}
}

Expand Down
2 changes: 2 additions & 0 deletions packages/theme/src/textarea/vars.less
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
--tv-Textarea-placeholder-text-color: var(--tv-color-text-placeholder);
// 文本域disabled时的文本颜色
--tv-Textarea-disabled-text-color: var(--tv-color-text-disabled);
// 文本域disabled时的边框颜色
--tv-Textarea-disabled-border-color: var(--tv-color-border-disabled);
// 文本域disabled时的背景颜色
--tv-Textarea-disabled-bg-color: var(--tv-color-bg-disabled);
// 文本域exceed时的文本颜色
Expand Down

0 comments on commit 3175340

Please sign in to comment.