MOBILE-3748 a11y: Indicate non-downloadable items

main
Noel De Martin 2023-04-27 09:39:25 +02:00
parent e9fb8784b7
commit e281bc15b3
3 changed files with 5 additions and 0 deletions

View File

@ -2206,6 +2206,7 @@
"core.noselection": "form",
"core.notapplicable": "local_moodlemobileapp",
"core.notavailable": "moodle",
"core.notdownloadable": "local_moodlemobileapp",
"core.notenrolledprofile": "moodle",
"core.notice": "moodle",
"core.notingroup": "moodle",

View File

@ -136,6 +136,9 @@
[attr.aria-label]="'addon.storagemanager.deletedatafrom' | translate: { name: module.name }">
</ion-icon>
</ion-button>
<p *ngIf="!downloadEnabled || !module.handlerData?.showDownloadButton" class="sr-only">
{{ 'core.notdownloadable' | translate }}
</p>
</div>
</ion-item>
</ng-container>

View File

@ -220,6 +220,7 @@
"noselection": "No selection",
"notapplicable": "n/a",
"notavailable": "Not available",
"notdownloadable": "Not downloadable",
"notenrolledprofile": "This profile is not available because this user is not enrolled in this course.",
"notice": "Notice",
"notingroup": "Sorry, but you need to be part of a group to see this page.",