Skip to content

Commit

Permalink
fix: add min-height to Textarea (#2818)
Browse files Browse the repository at this point in the history
* fix: add min-height to form.control textarea

* refactor: add changes after review

* fix: fix linter problems

* refactor: apply styles only for textarea

---------

Co-authored-by: Kyrylo Hudym-Levkovych <kyr.hudym@kyrs-MacBook-Pro.local>
  • Loading branch information
khudym and Kyrylo Hudym-Levkovych committed Nov 22, 2023
1 parent 7f222d1 commit c659cbf
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Form/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,20 @@ $select-icon-padding: .5625rem !default;
flex-grow: 1;
align-items: flex-start;

textarea {
&.form-control {
min-height: $input-height;
}

&.form-control-lg {
min-height: $input-height-lg;
}

&.form-control-sm {
min-height: $input-height-sm;
}
}

@media (min-width: map-get($grid-breakpoints, "sm")) {
margin-inline-end: $custom-control-gutter;
}
Expand Down

0 comments on commit c659cbf

Please sign in to comment.