From 5e946caadac74a5331fc4c57d63bc2a426265eef Mon Sep 17 00:00:00 2001 From: Cee Chen Date: Tue, 21 Nov 2023 08:50:00 -0800 Subject: [PATCH 1/2] Fix `hasEmptyLabelSpace` being off by 2px --- src/components/form/form_row/_form_row.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/form/form_row/_form_row.scss b/src/components/form/form_row/_form_row.scss index db7cd466e7a..402ddb58642 100644 --- a/src/components/form/form_row/_form_row.scss +++ b/src/components/form/form_row/_form_row.scss @@ -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; From e52c45ba4142e710cdb9c9d788aadc9ca6d98d77 Mon Sep 17 00:00:00 2001 From: Cee Chen Date: Tue, 21 Nov 2023 08:55:26 -0800 Subject: [PATCH 2/2] changelog --- changelogs/upcoming/7380.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changelogs/upcoming/7380.md diff --git a/changelogs/upcoming/7380.md b/changelogs/upcoming/7380.md new file mode 100644 index 00000000000..e511087cbd4 --- /dev/null +++ b/changelogs/upcoming/7380.md @@ -0,0 +1,3 @@ +**Bug fixes** + +- Fixed `EuiFormRow`s with `hasEmptyLabelSpace` being very slightly off in vertical alignment