Skip to content

Commit 31be6d5

Browse files
authored
Merge pull request #2583 from stanislavgeorgiev/issue-2550
fix(code-snippet): Fix an a11y violation
2 parents 2b1984a + 9d33784 commit 31be6d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/code-snippet/code-snippet.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export enum SnippetType {
3333
</ng-container>
3434
3535
<ng-template #notInline>
36-
<div class="bx--snippet-container" [attr.aria-label]="translations.CODE_SNIPPET_TEXT">
36+
<div class="bx--snippet-container" [attr.aria-label]="translations.CODE_SNIPPET_TEXT" role="textbox" aria-readonly="true">
3737
<ng-container *ngIf="skeleton">
3838
<span *ngIf="display === 'single'; else multiSkeleton"></span>
3939
<ng-template #multiSkeleton>

0 commit comments

Comments
 (0)