Skip to content

Commit

Permalink
fix(textarea): move width do k-textarea instead of inner element
Browse files Browse the repository at this point in the history
fixes: #1969
  • Loading branch information
joneff committed Oct 20, 2020
1 parent d266c24 commit ebb8f9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/default/scss/textarea/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@include border-radius( $textarea-border-radius );
margin: 0;
padding: 0;
width: $textarea-default-width;
border-width: $textarea-border-width;
border-style: solid;
outline: 0;
Expand Down Expand Up @@ -33,13 +34,13 @@
opacity: $input-placeholder-opacity;
user-select: none;
}

> .k-input {
padding: $textarea-padding-y $textarea-padding-x;
width: $textarea-default-width;
height: auto;
min-height: $textarea-calc-height;
overflow-y: auto;
resize: both;
resize: vertical;
}

// Disabled state
Expand All @@ -62,7 +63,6 @@
// Textarea old rendering
textarea.k-textarea {
padding: $textarea-padding-y $textarea-padding-x;
width: $textarea-default-width;
min-height: $textarea-calc-height;
display: inline-block;
resize: both;
Expand All @@ -73,7 +73,7 @@
.k-floating-label-container {
> .k-textarea {
flex: 1 1 auto;
width: auto;
width: 100%;
}
}
}
Expand Down

0 comments on commit ebb8f9a

Please sign in to comment.