-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rating, ToggleGroup: Improve accessibility #9058
Conversation
MudRating - Add `role="radiogroup"` - Format razor MudRatingItem - Add `role="radio"` MudToggleGroup - Add `role="group"` - Format razor - still needs proper keyboard support (Waiting for MudBlazor#9003) MudToggleItem - Add `role="checkbox"`
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #9058 +/- ##
==========================================
+ Coverage 89.82% 90.64% +0.81%
==========================================
Files 412 398 -14
Lines 11878 12374 +496
Branches 2364 2403 +39
==========================================
+ Hits 10670 11216 +546
+ Misses 681 620 -61
- Partials 527 538 +11 ☔ View full report in Codecov by Sentry. |
cc @igotinfected 1 of 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a few suggestions, as usual huge thanks for the work!
This comment was marked as outdated.
This comment was marked as outdated.
What do you think now @igotinfected? Should be a good compromise i think Maybe the ToggleItem needs a localizable label like MudRatingItem? Also getting Is there a difference in aria attributes and regular ones? |
LGTM!
Users can add
Pretty sure I ran into the same problem in one of my accessibility PRs... IIRC it's because I think Blazor outputs |
@henon Ready to review |
Thanks |
Description
MudRating
role="radiogroup"
aria-readonly="@ReadOnly"
mud-disabled
class not applied to root so:active
style was still appliedMudRatingItem
role="radio"
aria-checked="@Checked"
for readonly itemsMudToggleGroup
role="group"
MudToggleItem
role="checkbox"
aria-checked="@Selected"
How Has This Been Tested?
visually
Type of Changes
Checklist
dev
).