1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 17:23:37 +00:00

[CL-335][CL-336][CL-374] Announce toasts more consistently (#13167)

This commit is contained in:
Vicki League
2025-02-13 14:56:43 -05:00
committed by GitHub
parent 86ce9d3cc8
commit fabcf04398
10 changed files with 80 additions and 20 deletions

View File

@@ -33,7 +33,7 @@ export default {
decorators: [
moduleMetadata({
imports: [CommonModule, BrowserAnimationsModule, ButtonModule],
imports: [CommonModule, BrowserAnimationsModule, ButtonModule, ToastModule],
declarations: [ToastServiceExampleComponent],
}),
applicationConfig({
@@ -47,6 +47,7 @@ export default {
success: "Success",
error: "Error",
warning: "Warning",
info: "Info",
});
},
},
@@ -103,7 +104,9 @@ export const Service: Story = {
props: {
toastOptions: args,
},
template: `
template: /*html*/ `
<!-- Toast container is used here to more closely align with how toasts are used in the clients, which allows for more accurate SR testing in storybook -->
<bit-toast-container></bit-toast-container>
<toast-service-example [toastOptions]="toastOptions"></toast-service-example>
`,
}),