Skip to content

Commit 5203f85

Browse files
committed
Moving margin rules to native
1 parent 8bdd89d commit 5203f85

2 files changed

Lines changed: 14 additions & 11 deletions

File tree

core/src/components/textarea/textarea.common.scss

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -506,17 +506,6 @@
506506
z-index: 2;
507507
}
508508

509-
/**
510-
* Ensures the textarea does not
511-
* overlap the label.
512-
*/
513-
:host(.textarea-label-placement-stacked) textarea,
514-
:host(.textarea-label-placement-floating) textarea,
515-
:host(.textarea-label-placement-stacked[auto-grow]) .native-wrapper::after,
516-
:host(.textarea-label-placement-floating[auto-grow]) .native-wrapper::after {
517-
@include margin(8px, 0px, 0px, 0px);
518-
}
519-
520509
/**
521510
* This makes the label sit over the textarea
522511
* when the textarea is blurred and has no value.

core/src/components/textarea/textarea.native.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,20 @@
120120
@include globals.margin(0, globals.$form-control-label-margin, 0, 0);
121121
}
122122

123+
// Textarea Label Placement - Stacked & Floating
124+
// ----------------------------------------------------------------
125+
126+
/**
127+
* Ensures the textarea does not
128+
* overlap the label.
129+
*/
130+
:host(.textarea-label-placement-stacked) textarea,
131+
:host(.textarea-label-placement-floating) textarea,
132+
:host(.textarea-label-placement-stacked[auto-grow]) .native-wrapper::after,
133+
:host(.textarea-label-placement-floating[auto-grow]) .native-wrapper::after {
134+
@include globals.margin(8px, 0px, 0px, 0px);
135+
}
136+
123137
// Start / End Slots
124138
// ----------------------------------------------------------------
125139

0 commit comments

Comments
 (0)