From a92afa50b15f6c721909297f28c4d5f74411c38a Mon Sep 17 00:00:00 2001 From: JC Franco Date: Thu, 8 Feb 2024 17:21:26 -0800 Subject: [PATCH] fix(loader): fix perf impact of loader indeterminate animation --- packages/calcite-components/src/components/loader/loader.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/calcite-components/src/components/loader/loader.scss b/packages/calcite-components/src/components/loader/loader.scss index 6b1b17ee789..58da4bcb141 100644 --- a/packages/calcite-components/src/components/loader/loader.scss +++ b/packages/calcite-components/src/components/loader/loader.scss @@ -32,6 +32,7 @@ $loader-circumference: ($loader-scale - (2 * $stroke-width)) * 3.14159; animation: loader-color-shift scaleDuration(--calcite-internal-animation-timing-slow, 2) alternate-reverse infinite linear; padding-block: var(--calcite-loader-padding, theme("spacing.16")); + will-change: contents; } :host([scale="s"]) {