Skip to content

Commit

Permalink
fix(text-field): wrap text in textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
vdegenne committed Nov 29, 2023
1 parent b5686ea commit 4fce487
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion field/internal/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ $_enter-delay: $_label-duration - $_visible-duration;
line-height: var(--_content-line-height);
font-weight: var(--_content-weight);
width: 100%;
white-space: pre-wrap; // Needed for Firefox textarea with "all: unset"
// Reverting values before "all: unset"
overflow-wrap: revert; // Needed to break words in textarea
white-space: revert; // Needed for Firefox textarea
}

.content ::slotted(:not(textarea)) {
Expand Down

0 comments on commit 4fce487

Please sign in to comment.