From 6a1c7afbe9dca4cd976383b0096b852b3dc2ff02 Mon Sep 17 00:00:00 2001 From: Peter Hellstrand Date: Thu, 22 Feb 2024 10:43:18 +0100 Subject: [PATCH] fix(ffe-buttons): zoom spinner base button --- packages/ffe-buttons/less/base-button.less | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/ffe-buttons/less/base-button.less b/packages/ffe-buttons/less/base-button.less index f599f4bb7d..9113f7818a 100644 --- a/packages/ffe-buttons/less/base-button.less +++ b/packages/ffe-buttons/less/base-button.less @@ -264,10 +264,12 @@ opacity: 0; position: absolute; right: 0; - top: 8px; + top: 0; transform: translateY(24px); transition: all @ffe-transition-duration @ffe-ease; visibility: hidden; + display: grid; + place-items: center; .ffe-button--loading & { opacity: 1; @@ -282,9 +284,8 @@ border-top-color: transparent; content: ''; display: block; - height: 22px; - margin: 0 auto; - width: 22px; + height: 1.375rem; + aspect-ratio: 1; @keyframes button-loading-spin { from {