-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Radio, Checkbox: Fix group label (#652)
* docs: add @sirrah-tam as a contributor * fix: update radio/checkbox labeling Remove concatenation for label reference as well as the aria-labelledby attribute so thelegend element is used to calculate accName for group. Added the aria-describedby attribute with the ID ref message to look for the associated hint/description text. * chore: add changeset * fix: use messageID value for aria-describedby ref Co-authored-by: Brent Swisher <[email protected]> * fix(radio/checkbox): add ifDefined directive for aria-describedby * test(radio/checkbox group): add tests for accDesc * fix: use template literal for groupID expression Co-authored-by: Dane Hillard <[email protected]> * fix: use template literal for groupID expression Co-authored-by: Dane Hillard <[email protected]> --------- Co-authored-by: Brent Swisher <[email protected]> Co-authored-by: Dane Hillard <[email protected]>
- Loading branch information
1 parent
9cf3860
commit 3ad3fd6
Showing
5 changed files
with
53 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@ithaka/pharos': patch | ||
--- | ||
|
||
Update radio/checkbox group labelling to include aria-describedby and remove aria-labelledby |
This file contains 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
This file contains 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
This file contains 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
This file contains 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