Skip to content

Commit

Permalink
fix(textarea): scrollbars are visible with overflow (#26284)
Browse files Browse the repository at this point in the history
Resolves #26278
  • Loading branch information
sean-perkins authored Nov 15, 2022
1 parent 476e3a5 commit 7a990ff
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/src/components/textarea/textarea.scss
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@
resize: none;
appearance: none;

overflow: hidden;

&::placeholder {
@include padding(0);

Expand Down Expand Up @@ -168,7 +166,7 @@
opacity: 1;
}

:host([auto-grow]) .cloned-input {
:host([auto-grow="true"]) .cloned-input {
// Workaround for webkit rendering issue with scroll assist.
// When cloning the textarea and scrolling into view,
// a white box is rendered from the difference in height
Expand All @@ -191,3 +189,7 @@

opacity: 1;
}

:host([auto-grow="true"]) .native-textarea {
overflow: hidden;
}

0 comments on commit 7a990ff

Please sign in to comment.