1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 06:43:35 +00:00

Add type=button to stories (#12930)

This commit is contained in:
Oscar Hinton
2025-01-17 14:57:31 +01:00
committed by GitHub
parent 2726b3a957
commit dafeb1492a
9 changed files with 46 additions and 22 deletions

View File

@@ -9,10 +9,16 @@ import { CopyClickDirective } from "./copy-click.directive";
@Component({
template: `
<button appCopyClick="no toast shown" #noToast></button>
<button appCopyClick="info toast shown" showToast="info" #infoToast></button>
<button appCopyClick="success toast shown" showToast #successToast></button>
<button appCopyClick="toast with label" showToast valueLabel="Content" #toastWithLabel></button>
<button type="button" appCopyClick="no toast shown" #noToast></button>
<button type="button" appCopyClick="info toast shown" showToast="info" #infoToast></button>
<button type="button" appCopyClick="success toast shown" showToast #successToast></button>
<button
type="button"
appCopyClick="toast with label"
showToast
valueLabel="Content"
#toastWithLabel
></button>
`,
})
class TestCopyClickComponent {