Skip to content

Commit

Permalink
Merge pull request #2534 from safga/hotfix/#2533
Browse files Browse the repository at this point in the history
fix: #2533
  • Loading branch information
solarjoker authored Jul 14, 2023
2 parents fa7faed + 9fec6fc commit 548be8a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/big-apricots-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hi-ui/hiui": patch
---

Textarea fix: 修复 resize 调整高度和 disabled 样式问题
5 changes: 5 additions & 0 deletions .changeset/fifty-cycles-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hi-ui/textarea": patch
---

fix: 修复 resize 调整高度和 disabled 样式问题
8 changes: 3 additions & 5 deletions packages/ui/textarea/src/styles/textarea.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,11 @@ $prefix: "#{$component-prefix}-textarea" !default;
font-size: inherit;
line-height: inherit;
color: use-color("gray", 700);
resize: none;
resize: vertical;
overflow: auto;
z-index: auto;
word-break: break-all;

&:hover {
resize: vertical;
}

&::placeholder {
color: use-color("gray", 400);

Expand Down Expand Up @@ -262,6 +258,7 @@ $prefix: "#{$component-prefix}-textarea" !default;
.#{$prefix}__inner {
&.#{$prefix}__inner--disabled {
color: use-color("gray", 400);
-webkit-text-fill-color: use-color("gray", 400);
background-color: use-color("gray", 200);

.#{$prefix}__text {
Expand All @@ -276,6 +273,7 @@ $prefix: "#{$component-prefix}-textarea" !default;
.#{$prefix}__inner {
&.#{$prefix}__inner--disabled {
color: use-color("gray", 400);
-webkit-text-fill-color: use-color("gray", 400);
background-color: transparent;

.#{$prefix}__text {
Expand Down

0 comments on commit 548be8a

Please sign in to comment.