From 3c179e96b3621456174b466d2facdd270ccd7554 Mon Sep 17 00:00:00 2001 From: Anton Date: Tue, 13 Oct 2020 23:08:25 +0300 Subject: [PATCH] Fix Button with Loading Labeled Icon bug --- src/definitions/elements/icon.less | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/definitions/elements/icon.less b/src/definitions/elements/icon.less index 88b870d3d..0cfc3dee2 100755 --- a/src/definitions/elements/icon.less +++ b/src/definitions/elements/icon.less @@ -71,15 +71,19 @@ i.icon:before { i.icon.loading { height: 1em; line-height: 1; +} + +i.icon.loading:before { animation: icon-loading @loadingDuration linear infinite; } + @keyframes icon-loading { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } + from { + transform: translateY(-50%) rotate(0deg); + } + to { + transform: translateY(-50%) rotate(360deg); + } } /*******************************