Skip to content

Commit

Permalink
[EuiTextArea] Fix extra 2-3px of height caused by `display: inline-bl…
Browse files Browse the repository at this point in the history
…ock`
  • Loading branch information
cee-chen committed Mar 21, 2024
1 parent 14a1759 commit 2de256d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/form/text_area/_text_area.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
@include euiFormControlStyle;
line-height: $euiLineHeight; // give more spacing between multiple lines

// <textarea>s default to `inline-block`, which causes an extra 2-3px of
// unnecessary height within its parent `block` form control wrapper.
// @see https://stackoverflow.com/a/27536461/4294462
display: block;

// Textareas have their own sizing
&,
&--compressed {
Expand Down

0 comments on commit 2de256d

Please sign in to comment.