From 1f982e89d0a25f8d8280ae2457fc0323435fb9da Mon Sep 17 00:00:00 2001 From: DaiQiangReal Date: Mon, 6 Jan 2025 19:57:38 +0800 Subject: [PATCH] fix: fix iconButton lost keyframe when no spin component exist --- packages/semi-foundation/button/iconButton.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/semi-foundation/button/iconButton.scss b/packages/semi-foundation/button/iconButton.scss index 4f17fe018f..78b0086dda 100644 --- a/packages/semi-foundation/button/iconButton.scss +++ b/packages/semi-foundation/button/iconButton.scss @@ -4,6 +4,14 @@ $module: #{$prefix}-button; .#{$module} { + @keyframes #{$prefix}-animation-rotate { + from { + transform: rotate(0); + } + to { + transform: rotate(360deg); + } + } &.#{$module}-with-icon { display: inline-flex; align-items: center;