Skip to content

Commit

Permalink
[Button] Remove style override when loading (#2686)
Browse files Browse the repository at this point in the history
  • Loading branch information
vnbaaij committed Sep 19, 2024
1 parent 6420d80 commit 7fa0471
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Components/Button/FluentButton.razor
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ else
{
<fluent-button @ref=Element
class="@(LoadingOverlay ? string.Empty : Class)"
style="@(LoadingOverlay ? "width: 100%;" : Style)"
style="@Style"
autofocus=@Autofocus
form=@FormId
formaction=@Action
Expand Down
2 changes: 2 additions & 0 deletions src/Core/Components/Button/FluentButton.razor.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.loading-button {
position: relative;
height: calc((var(--base-height-multiplier) + var(--density))* var(--design-unit)* 1px);
display: inline-block;
}

.loading-button ::deep fluent-progress-ring {
Expand Down

0 comments on commit 7fa0471

Please sign in to comment.