From 2a7ebcfc651fb552f502f0c7a0395799d7023397 Mon Sep 17 00:00:00 2001 From: Jeramy Soucy Date: Thu, 5 Jan 2023 13:29:08 -0500 Subject: [PATCH] Fixes Spaces loading spinner alignment (#148424) Resolves #147993 Adds vertical alignment to the EuiLoadingSpinner in the Spaces navigation popover button. Previous render: Screen Shot 2023-01-04 at 6 23 27 PM New render: Screen Shot 2023-01-04 at 6 25 04 PM Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../__snapshots__/nav_control_popover.test.tsx.snap | 1 + .../spaces/public/nav_control/nav_control_popover.tsx | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/spaces/public/nav_control/__snapshots__/nav_control_popover.test.tsx.snap b/x-pack/plugins/spaces/public/nav_control/__snapshots__/nav_control_popover.test.tsx.snap index 38a36d5b3657b..ea194bafa3d3c 100644 --- a/x-pack/plugins/spaces/public/nav_control/__snapshots__/nav_control_popover.test.tsx.snap +++ b/x-pack/plugins/spaces/public/nav_control/__snapshots__/nav_control_popover.test.tsx.snap @@ -15,6 +15,7 @@ exports[`NavControlPopover renders without crashing 1`] = ` title="loading spaces navigation" >

{ }); } + private getAlignedLoadingSpinner() { + return ; + } + private getActiveSpaceButton = () => { const { activeSpace } = this.state; if (!activeSpace) { - return this.getButton(, 'loading spaces navigation'); + return this.getButton(this.getAlignedLoadingSpinner(), 'loading spaces navigation'); } return this.getButton( - }> + , (activeSpace as Space).name