From 237748049c7644ae8a7a74101ece5cfd7a160470 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Tue, 19 May 2020 12:38:03 -0400 Subject: [PATCH] fix(textarea): native textarea inherits max/min width and heights (#21333) Co-authored-by: Stefanos Anagnostou --- core/src/components/textarea/textarea.scss | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/core/src/components/textarea/textarea.scss b/core/src/components/textarea/textarea.scss index c2e7f879b4..b31380e242 100644 --- a/core/src/components/textarea/textarea.scss +++ b/core/src/components/textarea/textarea.scss @@ -39,7 +39,6 @@ flex: 1; width: 100%; - box-sizing: border-box; background: var(--background); color: var(--color); @@ -49,6 +48,8 @@ white-space: pre-wrap; z-index: $z-index-item-input; + + box-sizing: border-box; } :host(.ion-color) { @@ -74,6 +75,13 @@ // Native Textarea // -------------------------------------------------- +.textarea-wrapper { + min-width: inherit; + max-width: inherit; + min-height: inherit; + max-height: inherit; +} + .native-textarea { @include border-radius(var(--border-radius)); @include margin(0);