Skip to content

Commit 3c179e9

Browse files
committed
Fix Button with Loading Labeled Icon bug
1 parent 9fe42b1 commit 3c179e9

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

src/definitions/elements/icon.less

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,19 @@ i.icon:before {
7171
i.icon.loading {
7272
height: 1em;
7373
line-height: 1;
74+
}
75+
76+
i.icon.loading:before {
7477
animation: icon-loading @loadingDuration linear infinite;
7578
}
79+
7680
@keyframes icon-loading {
77-
from {
78-
transform: rotate(0deg);
79-
}
80-
to {
81-
transform: rotate(360deg);
82-
}
81+
from {
82+
transform: translateY(-50%) rotate(0deg);
83+
}
84+
to {
85+
transform: translateY(-50%) rotate(360deg);
86+
}
8387
}
8488

8589
/*******************************

0 commit comments

Comments
 (0)