Skip to content

Commit

Permalink
fix(textarea): native textarea inherits max/min width and heights (#2…
Browse files Browse the repository at this point in the history
…1333)

Co-authored-by: Stefanos Anagnostou <[email protected]>
  • Loading branch information
liamdebeasi and anagstef authored May 19, 2020
1 parent ec4c0fe commit 2377480
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion core/src/components/textarea/textarea.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
flex: 1;

width: 100%;
box-sizing: border-box;

background: var(--background);
color: var(--color);
Expand All @@ -49,6 +48,8 @@
white-space: pre-wrap;

z-index: $z-index-item-input;

box-sizing: border-box;
}

:host(.ion-color) {
Expand All @@ -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);
Expand Down

0 comments on commit 2377480

Please sign in to comment.