Skip to content

Commit

Permalink
[EuiFormRow] Fix hasEmptyLabelSpace being off by 2px (#7380)
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen authored Nov 21, 2023
1 parent 74cee6a commit 28c15a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelogs/upcoming/7380.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**Bug fixes**

- Fixed `EuiFormRow`s with `hasEmptyLabelSpace` being very slightly off in vertical alignment
2 changes: 1 addition & 1 deletion src/components/form/form_row/_form_row.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}

.euiFormRow--hasEmptyLabelSpace {
margin-top: floor($euiFontSize * $euiBodyLineHeight) + $euiSizeXS; /* 2 */
margin-top: $euiSize + $euiSizeXS; /* 2 */
// the following ensure that contents that aren't inherently the same height
// as inputs will align to the vertical center
min-height: $euiFormControlHeight;
Expand Down

0 comments on commit 28c15a8

Please sign in to comment.