-
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.
Trigger onClose when Dialog backdrop is clicked (#4613)
* Trigger onClose when Dialog backdrop is clicked * Update docs with new backdrop gesture * refactor: re-use escape gesture for backdrop click * chore: update changeset * docs: update jsdoc for handler * chore: run format * test: update test to call for escape instead of backdrop --------- Co-authored-by: Dusty Greif <dustin.greif@gmail.com> Co-authored-by: Josh Black <joshblack@users.noreply.github.com>
- Loading branch information
1 parent
f252337
commit eb2ab13
Showing
3 changed files
with
34 additions
and
6 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 | ||
--- | ||
|
||
`Dialog` and `ConfirmationDialog` can now be closed by clicking on the backdrop surrounding the dialog. This will cause `onClose` to be called with the `escape` gesture. |
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