Skip to content

Commit 69d2ddb

Browse files
authored
Merge pull request #7023 from flppv/next
[Icon] Fixed background issue when Icon is used as Labeled Icon for Button as loading one
2 parents 0300061 + 3c179e9 commit 69d2ddb

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)