Skip to content

Commit 1c8c7bf

Browse files
committed
clean up styles
1 parent f0b83e3 commit 1c8c7bf

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

core/src/components/textarea/textarea.scss

+1-15
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,9 @@
6262

6363
font-family: $font-family-base;
6464

65-
white-space: pre-wrap;
66-
6765
z-index: $z-index-item-input;
6866

6967
box-sizing: border-box;
70-
71-
/**
72-
* textarea defaults to break-spaces which
73-
* can cause extra whitespace to appear
74-
* when using newlines before a slotted
75-
* label element. To avoid this, we use
76-
* "collapse" which is the default value
77-
* for an <input />
78-
* If textarea is converted to Shadow DOM
79-
* then this may not be needed.
80-
*/
81-
white-space-collapse: collapse;
8268
}
8369

8470
// TODO: FW-2876 - Remove this selector
@@ -87,7 +73,7 @@
8773

8874
background: var(--background);
8975

90-
white-space-collapse: inherit;
76+
white-space: pre-wrap;
9177
}
9278

9379
// TODO: FW-2876 - Remove this selector

0 commit comments

Comments
 (0)