Skip to content

Commit

Permalink
feat(textarea): set min height
Browse files Browse the repository at this point in the history
  • Loading branch information
theetrain committed Dec 20, 2017
1 parent a81e985 commit a4ee19e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Textarea/Textarea.modules.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
.preventWidthResizing {
// Set max width to prevent the textarea from being resized beyond it's container.
// Set max width to prevent the textarea from being resized beyond its container.
// Set min width to prevent the textarea from being resized smaller, making the absolutely positioned icon have to be repositioned.

// Another option here can be to wrap the textarea in an "inline-block" div, which will adapt to the bounds of the child textarea.
// - I chose to prevent resizing the width to avoid edge cases due to the absolutely positioned icon.
max-width: 100%;
min-width: 100%;
min-height: 208px;
}

.feedbackIconPosition {
Expand Down

0 comments on commit a4ee19e

Please sign in to comment.