-
Notifications
You must be signed in to change notification settings - Fork 552
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Dialog] Replace deprecated
Button
for current one (#3084)
* feat(Dialog): use new `Button` + change `DialogButtonProps` to match it + change `autoFocus` logic so first `button` gets focus when navigating with tabs * fix(Dialog): rollback change on `focus` functionality * fix(Dialog): add support to deprecated `normal` `buttonType` * fix(Dialog): override `ButtonProps` `children` * chore(tests): update snapshots * chore(Dialog): changeset * chore(tests): update snapshots * chore(ConfirmationDialog): update tests and snapshot * Update src/__tests__/ConfirmationDialog.test.tsx Co-authored-by: Armağan <broccolinisoup@github.com> * import ActionList and remove unused buttonRef and extra lines * fix the import * Add changed components to .changeset/cool-schools-cheer.md --------- Co-authored-by: Armağan <broccolinisoup@github.com> Co-authored-by: Mike Perrotti <mperrotti@github.com>
- Loading branch information
1 parent
90a145c
commit ded74d8
Showing
8 changed files
with
263 additions
and
96 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 @@ | ||
--- | ||
'@primer/react': minor | ||
--- | ||
|
||
[Dialog] Replaces deprecated button for current one | ||
<!-- Changed components: Dialog--> |
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.