Skip to content

Commit

Permalink
ProgressCircular: Fix lagg in indeterminate animation (MudBlazor#1831,
Browse files Browse the repository at this point in the history
  • Loading branch information
mckaragoz authored and jammerware committed Sep 20, 2022
1 parent 5b658a6 commit 6ada362
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
@@ -1,7 +1,7 @@
@namespace MudBlazor
@inherits MudComponentBase

<div @attributes="UserAttributes" class="@DivClassname" role="progressbar" style="@DivStyle" aria-valuenow="@Value">
<div @attributes="UserAttributes" class="@DivClassname" role="progressbar" style="@Style" aria-valuenow="@Value">
<svg class="mud-progress-circular-svg" viewBox="22 22 44 44">
@if (Indeterminate)
{
Expand Down
Expand Up @@ -24,11 +24,6 @@ public partial class MudProgressCircular : MudComponentBase
.AddClass($"mud-progress-static", !Indeterminate)
.Build();

protected string DivStyle =>
new StyleBuilder("transform", "rotate(-90deg)")
.AddStyle(Style)
.Build();

/// <summary>
/// The color of the component. It supports the theme colors.
/// </summary>
Expand Down
1 change: 1 addition & 0 deletions src/MudBlazor/Styles/components/_progresscircular.scss
Expand Up @@ -30,6 +30,7 @@

.mud-progress-circular-svg {
display: block;
transform: rotate(-90deg);
}

.mud-progress-circular-circle {
Expand Down

0 comments on commit 6ada362

Please sign in to comment.