Skip to content

Commit

Permalink
chore: story code cleanup and updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nickonometry committed Sep 20, 2024
1 parent c62207c commit 7ad9544
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import * as ConfirmationDialogStories from './ConfirmationDialog.stories';

<Title />

Confirmation dialogs convey a brief message or alert. For alerts that are one sentence or less, the dialog title can be excluded. They may be closed by clicking outside of the dialog, or by clicking a dismissive action. These dialogs display the same in mobile and desktop contexts.
Confirmation dialogs are designed to convey a brief message or alert, up to 2 sentences. For alerts that are a single sentence, the dialog title can be excluded. They may be closed by clicking outside of the dialog, pressing escape, or by clicking a dismissive action. These dialogs display the same in mobile and desktop contexts.

<Canvas of={ConfirmationDialogStories.Demo} />

Description here
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,25 @@ const meta = {
<forge-confirmation-dialog
${ref(confirmationDialogRef)}
@forge-confirmation-dialog-action=${(e: IConfirmationDialogAction) => onConfirmationDialogAction(e)}
@forge-dialog-close=${closeDialog}
?open=${args.open}
.isBusy=${args.isBusy}
.showTitleText=${args.showTitleText}
.titleText="${args.titleText}"
.titleText=${args.titleText}
.message=${args.message}
.showSecondaryButton=${args.showSecondaryButton}
.secondaryButtonText=${args.secondaryButtonText}
.primaryButtonText=${args.primaryButtonText}>
<div slot="message">Are you sure you want to reset your settings?</div>
</forge-confirmation-dialog>
`;
},
args: {
open: false,
isBusy: false,
showTitleText: true,
titleText: 'Reset settings?',
message: 'Are you sure you want to reset your device to its default settings?',
titleText: 'Delete selected images?',
message: 'Images will be permanently removed from your account and all synced devices.',
showSecondaryButton: true,
secondaryButtonText: 'No',
primaryButtonText: 'Yes',
Expand Down

0 comments on commit 7ad9544

Please sign in to comment.