You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: Title becomes the accessible name in FluentButton #5590
If a FluentButton has both text and a Title, the Title ends up as the aria-label, so the accessible name no longer contains the visible text. FluentAnchorButton, FluentCompoundButton, FluentMenuButton, FluentSplitButton and FluentToggleButton do the same.
💻 Repro or Code Sample
<FluentButtonTitle="Write a query first.">Run</FluentButton>
🤔 Expected Behavior
The accessible name stays "Run" and Title stays a tooltip.
😯 Current Behavior
It renders this on 5.0.0 and 5.0.1:
<fluent-buttonrole="button" aria-label="Write a query first." title="Write a query first." ...>Run</fluent-button>
That fails WCAG 2.5.3 (Label in Name). Someone using voice control who says "click Run" won't hit the button, and a screen reader reads the tooltip instead of "Run".
💁 Possible Solution
It comes from aria-label="@Title" in FluentButton.razor. Maybe only set it when there's no Label or ChildContent, the same check icon-only already uses. Icon-only buttons would keep their name, and the FluentButton_Title snapshot would change. I'm happy to send a PR if that sounds right to you. Until then, passing aria-label explicitly works around it.
🔦 Context
I was adding explanatory tooltips to disabled buttons and noticed the button name changed to the tooltip text.
🌍 Your Environment
OS & Device: Windows 11 on PC
Browser: not relevant, the attributes come from the server render (checked with bUnit)
.NET and Fluent UI Blazor library Version: .NET 10.0.401 and Microsoft.FluentUI.AspNetCore.Components 5.0.0 and 5.0.1
Activity
vnbaaij commentedon Nov 4, 2026
Yes, please create a PR to fix this.
p6laris commentedon Nov 4, 2026
Thanks, I'm on it. I'll open the PR shortly.