-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enhance focus control for
Drawer
, Modal
, and Tooltip
comp…
…onents (#748) * feat: add `closeOnPointerDown` and `openOnFocus` props to Tooltip * feat: add `returnFocusOnClose` prop to Modal * feat: add `returnFocusOnClose` prop to Drawer * docs: rename the deprecated `isInvalid` prop to `error` * docs: add the `returnFocusOnClose` option to the examples of Drawer and Modal * feat: add `aria-label="Close"` attribute to the close button for accessibility * feat: add `aria-modal="true"` attribute to the modal content * test: improve Modal component test coverage * test: improve Drawer component test coverage * docs: update description for the focus control props (autoFocus, ensureFocus, initialFocusRef, finalFocusRef) * test: improve Menu component test coverage * test: improve Tooltip component test coverage
- Loading branch information
Showing
23 changed files
with
1,223 additions
and
106 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
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
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.