Fix .icon so transform animations work on webfont icons (#2729)

Co-authored-by: codecalm <codecalm@gmail.com>
This commit is contained in:
Riccardo Bessoneandcodecalm authored and GitHub committed 2026-08-01 01:58:45 +02:00
1 parent 70f069cd05
commit 70193fef56
2 files changed
+7

No files matched your search

@@ -0,0 +1,5 @@
---
"@tabler/core": patch
---
Fixed transform animations (`.icon-pulse`, `.icon-tada`, `.icon-rotate`) not working on webfont icons by adding `display: inline-block` and `transform-origin: center` to `.icon`.
+2
View File
@@ -9,6 +9,8 @@
height: var(--#{$prefix}icon-size);
font-size: var(--#{$prefix}icon-size);
vertical-align: bottom;
display: inline-block;
transform-origin: center;
@if $icon-stroke-width {
stroke-width: $icon-stroke-width;