Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(side-modal): fix autofocus and improve animation (#3296)
* fix(side-modal): fix autofocus and improve animation * chore: add changeset * feat(side-modal): add `hideOnEsc` prop and docs * fix: change default hideOnEsc to true * chore: update docs
- Loading branch information
Showing
4 changed files
with
64 additions
and
56 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,6 @@ | ||
--- | ||
'@twilio-paste/side-modal': minor | ||
'@twilio-paste/core': minor | ||
--- | ||
|
||
[SideModal] Add new prop `hideOnEsc` which enables closing the SideModal when the "Escape" keyboard key is pressed |
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,6 @@ | ||
--- | ||
'@twilio-paste/side-modal': patch | ||
'@twilio-paste/core': patch | ||
--- | ||
|
||
[SideModal] Fix to correctly focus the close button when the SideModal first opens |
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