MOBILE-3833 a11y: Add downloaded labels in storage

main
Noel De Martin 2022-03-10 11:13:18 +01:00
parent f760560481
commit 7661832ac4
1 changed files with 4 additions and 2 deletions

View File

@ -53,7 +53,8 @@
</p> </p>
<ion-badge [color]="section.downloadStatus == statusDownloaded ? 'success' : 'light'" <ion-badge [color]="section.downloadStatus == statusDownloaded ? 'success' : 'light'"
*ngIf="section.totalSize > 0"> *ngIf="section.totalSize > 0">
<ion-icon aria-hidden="true" name="fam-cloud-done" *ngIf="section.downloadStatus == statusDownloaded"> <ion-icon name="fam-cloud-done" *ngIf="section.downloadStatus == statusDownloaded"
[attr.aria-label]="'core.downloaded' | translate">
</ion-icon>{{ section.totalSize | coreBytesToSize }} </ion-icon>{{ section.totalSize | coreBytesToSize }}
</ion-badge> </ion-badge>
<!-- Download progress. --> <!-- Download progress. -->
@ -98,7 +99,8 @@
</h3> </h3>
<ion-badge [color]="module.downloadStatus == statusDownloaded ? 'success' : 'light'" <ion-badge [color]="module.downloadStatus == statusDownloaded ? 'success' : 'light'"
*ngIf="module.totalSize > 0"> *ngIf="module.totalSize > 0">
<ion-icon aria-hidden="true" name="fam-cloud-done" *ngIf="module.downloadStatus == statusDownloaded"> <ion-icon name="fam-cloud-done" *ngIf="module.downloadStatus == statusDownloaded"
[attr.aria-label]="'core.downloaded' | translate">
</ion-icon>{{ module.totalSize | coreBytesToSize }} </ion-icon>{{ module.totalSize | coreBytesToSize }}
</ion-badge> </ion-badge>
</ion-label> </ion-label>