-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds FormControl's "Auto-Wiring" to SelectPanel v2 Component (#4389)
* autowires SelectPanelv2 to FormControl * added changeset * Update afraid-beds-lick.md * Button is aria-labelledby by 2 different components now * using querySelector instead of VisuallyHidden approach * Added visually hidden punctuation * removed selectPanelButtonId * hiding visuallyhidden text from screen readers as well * use ariaLabel instead of ariaLabelledby * added a 2nd test for complex button case * updated tests * using aria-labelledby to reference itself, updated tests * flipped order within aria-label * updated conditional, added negative test * removed aria-labelledby * test * fix --------- Co-authored-by: Siddharth Kshetrapal <siddharthkp@github.com>
- Loading branch information
1 parent
5049e20
commit 02035fe
Showing
4 changed files
with
124 additions
and
4 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 @@ | ||
--- | ||
'@primer/react': minor | ||
--- | ||
|
||
experimental/SelectPanel + FormControl: Automatically wires SelectPanel v2 to the accessibility and validation provided by the FormControl component it's nested within |
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