Skip to content

Loading indicator in button Slot #628

Answered by madcoda9000
madcoda9000 asked this question in Q&A
Discussion options

You must be logged in to vote

so it seems i found the problem by myself. The ProgressRoing is shown, but i cant see it because it has the accent color (the same as the button).

I've tried to set the progress ring color by css. But that ist not working. It seems the component is ignoring the css.

<FluentButton Appearance="Appearance.Accent" Type="@ButtonType.Submit" Disabled=@(ShowActivityVisible)>
                    @if (ShowActivityVisible==true)
                    {
                    <FluentProgressRing  style="color:#fff;width: 16px; height: 16px;"  Slot="start" ></FluentProgressRing>@btnText
                    } else {
                        @btnText
                    }
                </FluentButton>

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by madcoda9000
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@madcoda9000
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants