Merge pull request #3647 from NoelDeMartin/MOBILE-3748

MOBILE-3748 a11y: Indicate non-downloadable items
main
Dani Palou 2023-04-27 10:12:51 +02:00 committed by GitHub
commit d2a5a2bdf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.",