Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This text will be read by a screen reader while navigating the page. Does it make more sense to label it "Loading data, please wait" or something else? "Spinner" is a completely visual concept and won't make sense to a screen reader user.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the default label text.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="loading-container">
<div class="loading-text" *ngIf="loadingText">{{loadingText}}</div>
<mat-progress-spinner [color]="loaderColor" mode="indeterminate"></mat-progress-spinner>
<mat-progress-spinner [attr.aria-label]="ariaLabel" [color]="loaderColor" mode="indeterminate"></mat-progress-spinner>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export class LoadingComponent implements OnInit {

@Input() public loadingText = '';
@Input() public loaderColor = 'primary';
@Input() public ariaLabel: string = 'Loading data, please wait';

constructor() {
}
Expand Down