fluentui-blazor
fluentui-blazor copied to clipboard
fix: Icon-only button not converting to icon-only loading
🐛 Bug Report
When an icon-only <FluentButton> has Loading="true", the resulting button is not icon-only. It results in an asymmetrical button.
💻 Repro or Code Sample
<FluentButton Appearance="Appearance.Accent" Loading="false" IconStart="@(new Icons.Regular.Size16.ArrowDownload())" />
<FluentButton Appearance="Appearance.Accent" Loading="true" IconStart="@(new Icons.Regular.Size16.ArrowDownload())" />
🤔 Expected Behavior
The fluent-progress-ring should be in the content slot, instead of the start slot when the button has no content.
😯 Current Behavior
When Loading="true", the fluent-progress-ring is always in the start slot of the <FluentButton>.
💁 Possible Solution
🔦 Context
🌍 Your Environment
What version of Lib are you using?
With version 4.6, the result is correct.
We indeed included a fix for that. See #1714
Indeed, updating from 4.5.0 to 4.6.0 resolved the issue. Please excuse the oversight.