-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(input-date-picker): add focus trap support (#6816)
**Related Issue:** #6668 ## Summary Adds focus-trap to date-picker dialog to improve a11y. **Note:** This also adds a util to help retrieve props from the currently focused element. ## Notable `focusTrapComponent` changes * `connectFocusTrap` now supports passing a different focus-trap target element (for setting the focus trap on a component's subtree) and overrides to certain options from `focus-trap`'s `focusTrap()`. * `activateFocusTrap`/`deactivateFocusTrap` now allow passing options to `focus-trap`'s `activate`/`deactivate` methods. * `updateFocusTrapElements` is now optional.
- Loading branch information
Showing
6 changed files
with
290 additions
and
44 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
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.