Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Button] Remove style override when in loading state #2686

Merged
merged 2 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading