🐛 Bug Report
<Fluent-Rating> component ignores AriaLabel property.
💻 Repro or Code Sample
<FluentRating MaxValue="5" AriaLabel="Rate us" />
🤔 Expected Behavior
One of the component's child components should have an aria-label property with the appropriate value in the html. The ideal location would be the div with a role of radiogroup, so that the entire rating has an appropriate context.
Expected html: <div id="f44a2381d" class="fluent-rating blade-rating" role="radiogroup" b-9p46vl6e0d="" aria-label="Rate us">
NVDA:
Rate us grouping
radio button checked 2 of 9
😯 Current Behavior
<div id="f44a2381d" class="fluent-rating blade-rating" role="radiogroup" b-9p46vl6e0d="">
NVDA:
radio button checked 2 of 9
💁 Possible Solution
Pass the AriaLabel property down to the div with the role of radiogroup.
🔦 Context
I want to be able to use a rating component and have it make sense to a screen reader without necessarily providing a visible label adjacent to it.
🌍 Your Environment
- OS & Device: Windows 11
- Browser Firefox and Edge
- .NET 9.0
- Fluent UI Blazor library Version 4.10.4