Skip to content

Commit eab0c8e

Browse files
committed
feat(docs): add copy buttons to markdown code blocks
Add copy functionality to all code blocks in documentation markdown content. Previously, only example viewer code and module import snippets had copy buttons, but regular markdown code blocks (like configuration examples) were missing this feature.
1 parent 3f29341 commit eab0c8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/app/shared/doc-viewer/code-block-copy-button/code-block-copy-button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {Clipboard} from '@angular/cdk/clipboard';
1717
selector: 'code-block-copy-button',
1818
imports: [MatIconButton, MatIcon, MatTooltip],
1919
template: `
20-
<button role="button" type="button" mat-icon-button matTooltip="Copy code to the clipboard" (click)="copy()">
20+
<button mat-icon-button matTooltip="Copy code to the clipboard" (click)="copy()">
2121
<mat-icon>content_copy</mat-icon>
2222
</button>
2323
`,

0 commit comments

Comments
 (0)