Skip to content

Commit

Permalink
fix(loading-distractor): Loading distractor text is now announced by …
Browse files Browse the repository at this point in the history
…screen readers.
  • Loading branch information
Sherif-Elhefnawy committed Apr 22, 2022
1 parent d6163c1 commit 9181d8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Expand Up @@ -2,6 +2,6 @@
[aria-labelledby]="_labelId"
class="dt-loading-spinner"
></dt-loading-spinner>
<div [id]="_labelId" class="dt-loading-distractor-label">
<div role="status" [id]="_labelId" class="dt-loading-distractor-label">
<ng-content></ng-content>
</div>
Expand Up @@ -27,6 +27,9 @@ let nextUniqueId = 0;
exportAs: 'dtLoadingDistractor',
templateUrl: 'loading-distractor.html',
styleUrls: ['loading-distractor.scss'],
host: {
role: 'alert',
},
encapsulation: ViewEncapsulation.Emulated,
preserveWhitespaces: false,
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down

0 comments on commit 9181d8e

Please sign in to comment.