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. |
danielchalmers
left a comment
There was a problem hiding this comment.
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.
@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.
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
requiredandaria-requiredattributes in most components that emitinputs.Affected components:
MudInput,MudRangeInput,MudMaskMudTextField,MudAutocomplete,MudSelect,MudNumericFieldMudDatePicker,MudDateRangerPicker,MudColorPickerMudFileUploadMudCheckBox,MudSwitch,MudRadioResolves #5437
How Has This Been Tested?
Visually + unit tests.
Types of changes
Checklist
dev).