MudBaseInput components: add helper text reference to aria-describedby attribute#9193
Merged
henon merged 4 commits intoMudBlazor:devfrom Jun 21, 2024
Merged
Conversation
Member
Author
|
TODO:
FYI @danielchalmers, already working as-is, should be able to finish it up in the next few days |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #9193 +/- ##
==========================================
+ Coverage 89.82% 90.85% +1.02%
==========================================
Files 412 401 -11
Lines 11878 12525 +647
Branches 2364 2439 +75
==========================================
+ Hits 10670 11379 +709
+ Misses 681 607 -74
- Partials 527 539 +12 ☔ View full report in Codecov by Sentry. |
HelperText accessiblearia-describedby property
aria-describedby propertyaria-describedby attribute
igotinfected
commented
Jun 17, 2024
igotinfected
commented
Jun 17, 2024
igotinfected
commented
Jun 17, 2024
Member
Author
|
Good to go! |
danielchalmers
approved these changes
Jun 19, 2024
Member
danielchalmers
left a comment
There was a problem hiding this comment.
Wonderful, LGTM. Thanks for getting this working
Contributor
|
Thanks |
Closed
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a reference to helper text to the
aria-describedbyattribute for allMudBaseInputinheritors.Consumers can use this feature in two ways:
HelperIdparameter: this value will always be present in thearia-describedbyattributeHelperTextparameter: this value will only be present when the input does not have any errors because theErrorTextreplaces theHelperTextinternally once validation is triggeredThis PR affects the following components:
MudTextFieldMudAutocompleteMudSelectMudNumericFieldMudPickerinheritors will follow in a separate PR :)Also fixed some smaller issues:
MudNumericField:ErrorTextid toaria-describedbyConversionErrorTextis also displayed when availableAdornmentAriaLabelis renderedMudAutocomplete:ErrorTextid toaria-describedbyConversionErrorTextis also displayed when availableAdornmentAriaLabelis renderedMudTextFieldwith mask:AdornmentAriaLabelis renderedHow Has This Been Tested?
Unit tests and quick visual checks.
Type of Changes
Checklist
dev).