-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance/confirmdialog add custom button text (#38994)
* add customizable button labels * add story and knobs demonstrating custom button labels * add test for custom button text * implement `screen` for new custom button label test * refactor button text query to use `getByRole()` * mark confirmButtonText and cancelButtonText props as optional * refactor to improve readability Co-authored-by: Lena Morita <lena@jaguchi.com> * Update packages/components/src/confirm-dialog/component.tsx * Update packages/components/src/confirm-dialog/component.tsx * update README and CHANGELOG * Fix typo in test description * ConfirmDialog readme formatting fix Co-authored-by: Lena Morita <lena@jaguchi.com> Co-authored-by: Lena Morita <lena@jaguchi.com> Co-authored-by: Marco Ciampini <marco.ciampo@gmail.com> Co-authored-by: Marcelo Serpa <81248+fullofcaffeine@users.noreply.github.com>
- Loading branch information
1 parent
fc595ba
commit aca7e6e
Showing
6 changed files
with
118 additions
and
52 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