fluentui-blazor icon indicating copy to clipboard operation
fluentui-blazor copied to clipboard

fix: Icon-only button not converting to icon-only loading

Open pmi24 opened this issue 2 years ago • 3 comments

🐛 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())" />

image

🤔 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

pmi24 avatar Apr 05 '24 10:04 pmi24

What version of Lib are you using?

With version 4.6, the result is correct. image

dvoituron avatar Apr 05 '24 10:04 dvoituron

We indeed included a fix for that. See #1714

vnbaaij avatar Apr 05 '24 10:04 vnbaaij

Indeed, updating from 4.5.0 to 4.6.0 resolved the issue. Please excuse the oversight.

pmi24 avatar Apr 05 '24 10:04 pmi24