Skip to content

Commit 63d3f23

Browse files
committed
Remove margin o textarea
1 parent 55c506d commit 63d3f23

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

core/src/components/textarea/textarea.ionic.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,17 @@
112112
padding-bottom: var(--padding-bottom);
113113
}
114114

115+
/**
116+
* Removes the margin between the textarea and the label,
117+
* as ionic team already handles the margin.
118+
*/
119+
:host(.textarea-label-placement-stacked) textarea,
120+
:host(.textarea-label-placement-floating) textarea,
121+
:host(.textarea-label-placement-stacked[auto-grow]) .native-wrapper::after,
122+
:host(.textarea-label-placement-floating[auto-grow]) .native-wrapper::after {
123+
@include globals.margin(0px);
124+
}
125+
115126
// Textarea Highlight
116127
// ----------------------------------------------------------------
117128

0 commit comments

Comments
 (0)