-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SelectPanel: Accessibility remediation (#2138)
* Change deprecated/ActionList semantics * Remove item selection via Enter key * Handle focus on deprecated/ActionList * Adapt deprecated/ActionMenu prop * Update deprecated/ActionList tests and stories * Update deprecated/ActionList docs * Remove focusZone from the FilteredActionList component * Add sr-only description for input in the FilteredActionList component * Adapt SelectPanel: semantics, visual layout, add title, close button, save/cancel button and functionality. Update tests, docs, and stories. * Update SelectPanel test snap * Update deprecated/ActionList axe test * Update deprecated/ActionList axe test * Delete commented code * Update stories, Add ESC reset functionality * Add changeset (breaking change) * Preselect items on the SelectPanel docs that aren't the first ones * Use Heading instead of h1 on SelectPanel * Don't use selected items as the SelectPanel anchor label * Replace custom SrOnly with VisuallyHidden * Make the SelectPanel example dimensions larger * Support setting the selected items asyncronously * Fix new select panel issues (#2147) * Fix onClose being called with event instead of gesture Co-authored-by: Hector Garcia <[email protected]> * Remove unsupported PageUpDown bindkeys from useFocusZone * Remove console.debug * Make `title` and `inputLabel` optional with defaults * Remove unused prop * Add a placeholder prop for the search input * Make footer buttons smaller * Use `ButtonClose` * Better default title for multiselect `SelectPanel` * Fix lint warnings * Fix the AutocompleteMenu tests * Fix lint error * Fix MarkdownEditor tests, remove one for old behavior Co-authored-by: Hector Garcia <[email protected]> Co-authored-by: Cameron McHenry <[email protected]>
- Loading branch information
1 parent
7b8bc81
commit ace38af
Showing
20 changed files
with
2,710 additions
and
2,548 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 | ||
--- | ||
|
||
Accessibility fixes for SelectPanel. |
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
Oops, something went wrong.