-
-
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
Input: Add required
and aria-required
attributes (#5437)
#8691
Input: Add required
and aria-required
attributes (#5437)
#8691
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #8691 +/- ##
==========================================
+ Coverage 89.82% 90.13% +0.30%
==========================================
Files 412 419 +7
Lines 11878 12181 +303
Branches 2364 2397 +33
==========================================
+ Hits 10670 10979 +309
+ Misses 681 664 -17
- Partials 527 538 +11 ☔ View full report in Codecov by Sentry. |
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.
So stoked for all these accessibility changes!
I do think all inputs should have required; MudCheckBox, MudSwitch, MudRadio, etc. Seems fairly standard and I don't see the downside.
src/MudBlazor.UnitTests.Viewer/TestComponents/ColorPicker/SimpleColorPickerTest.razor
Outdated
Show resolved
Hide resolved
Yup, will add |
required
and aria-required
attr. (#5437)required
and aria-required
attributes (#5437)
Done. For |
DisableToolbar="DisableToolbar" | ||
DisableColorField="DisableColorField" | ||
DisablePreview="DisablePreview" | ||
DisableSliders="DisableSliders" | ||
DisableInputs="DisableInput" | ||
DisableModeSwitch="DisableModeSwitch" | ||
DisableAlpha="DisableAlpha" | ||
DisableDragEffect="DisableDragEffect" |
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.
@danielchalmers do you want to flip all these Disable*
in colorpicker for v7? In a separate PR of course
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.
Sure if someone can remind me after this is merged
Sorry, the branch is heavily conflicted. The code base is mutating pretty heavily due to all the breaking changes we make. |
No worries! Will clean it up when I find the time :) |
Well turns out the conflicts were all due to my other recently merged PRs... 😇 |
# Please enter the commit message for your changes. Lines starting
Thanks again |
Description
Implemented the
required
andaria-required
attributes in most components that emitinput
s.Affected components:
MudInput
,MudRangeInput
,MudMask
MudTextField
,MudAutocomplete
,MudSelect
,MudNumericField
MudDatePicker
,MudDateRangerPicker
,MudColorPicker
MudFileUpload
MudCheckBox
,MudSwitch
,MudRadio
Resolves #5437
How Has This Been Tested?
Visually + unit tests.
Types of changes
Checklist
dev
).