Skip to content

Commit

Permalink
fix(loader): restore animation (#10184)
Browse files Browse the repository at this point in the history
**Related Issue:** #10182

## Summary
While the new lint rule catches non-kebab-cased names at `@function`
definition, it does not catch wrong casing when applied. This fixes
missed applications.
  • Loading branch information
Elijbet authored Sep 3, 2024
1 parent 05a22d4 commit 1ae7cc1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/calcite-components/src/components/loader/loader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ $loader-circumference: ($loader-scale - (2 * $stroke-width)) * 3.14159;
stroke-width: $stroke-width;
fill: none;
transform: scale(1, 1);
animation: loader-color-shift scaleDuration(--calcite-internal-animation-timing-slow, 2) alternate-reverse infinite
animation: loader-color-shift scale-duration(--calcite-internal-animation-timing-slow, 2) alternate-reverse infinite
linear;
padding-block: var(--calcite-loader-padding, theme("spacing.16"));
will-change: contents;
Expand Down Expand Up @@ -88,7 +88,7 @@ $loader-circumference: ($loader-scale - (2 * $stroke-width)) * 3.14159;
margin-inline-start: calc(var(--calcite-loader-size) / 2 * -1);
animation-iteration-count: infinite;
animation-timing-function: linear;
animation-duration: scaleDuration(--calcite-internal-animation-timing-slow, 6.66);
animation-duration: scale-duration(--calcite-internal-animation-timing-slow, 6.66);
animation-name: loader-clockwise;
display: flex;
}
Expand Down Expand Up @@ -209,9 +209,9 @@ $loader-circumference: ($loader-scale - (2 * $stroke-width)) * 3.14159;
}
}

@include generate-segment(1, 10, 40, scaleDuration(--calcite-internal-animation-timing-slow, 4.8));
@include generate-segment(2, 20, 30, scaleDuration(--calcite-internal-animation-timing-slow, 6.4));
@include generate-segment(3, 05, 45, scaleDuration(--calcite-internal-animation-timing-slow, 7.734));
@include generate-segment(1, 10, 40, scale-duration(--calcite-internal-animation-timing-slow, 4.8));
@include generate-segment(2, 20, 30, scale-duration(--calcite-internal-animation-timing-slow, 6.4));
@include generate-segment(3, 05, 45, scale-duration(--calcite-internal-animation-timing-slow, 7.734));

@keyframes loader-color-shift {
0% {
Expand Down

0 comments on commit 1ae7cc1

Please sign in to comment.