Merge pull request #2261 from crazyserver/MOBILE-3301
MOBILE-3301 ux: Add aria-label to context more buttonsmain
commit
c4becfd0af
|
@ -1476,6 +1476,7 @@
|
||||||
"core.digitalminor_desc": "moodle",
|
"core.digitalminor_desc": "moodle",
|
||||||
"core.discard": "local_moodlemobileapp",
|
"core.discard": "local_moodlemobileapp",
|
||||||
"core.dismiss": "local_moodlemobileapp",
|
"core.dismiss": "local_moodlemobileapp",
|
||||||
|
"core.displayoptions": "atto_media",
|
||||||
"core.done": "survey",
|
"core.done": "survey",
|
||||||
"core.download": "moodle",
|
"core.download": "moodle",
|
||||||
"core.downloaded": "local_moodlemobileapp",
|
"core.downloaded": "local_moodlemobileapp",
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
<core-icon name="fa-star" class="addon-forum-star" *ngIf="!discussion.pinned && discussion.starred"></core-icon>
|
<core-icon name="fa-star" class="addon-forum-star" *ngIf="!discussion.pinned && discussion.starred"></core-icon>
|
||||||
<core-format-text [text]="discussion.subject" contextLevel="module" [contextInstanceId]="module.id" [courseId]="courseId"></core-format-text>
|
<core-format-text [text]="discussion.subject" contextLevel="module" [contextInstanceId]="module.id" [courseId]="courseId"></core-format-text>
|
||||||
</h2>
|
</h2>
|
||||||
<button ion-button icon-only clear color="dark" (click)="showOptionsMenu($event, discussion)" *ngIf="canPin || discussion.canlock || discussion.canfavourite">
|
<button ion-button icon-only clear color="dark" (click)="showOptionsMenu($event, discussion)" *ngIf="canPin || discussion.canlock || discussion.canfavourite" [attr.aria-label]="('core.displayoptions' | translate)">
|
||||||
<core-icon name="more"></core-icon>
|
<core-icon name="more"></core-icon>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<ion-note float-end padding-left text-end *ngIf="trackPosts && !post.postread" [attr.aria-label]="'addon.mod_forum.unread' | translate">
|
<ion-note float-end padding-left text-end *ngIf="trackPosts && !post.postread" [attr.aria-label]="'addon.mod_forum.unread' | translate">
|
||||||
<core-icon name="fa-circle" color="primary"></core-icon>
|
<core-icon name="fa-circle" color="primary"></core-icon>
|
||||||
</ion-note>
|
</ion-note>
|
||||||
<button ion-button icon-only clear color="dark" (click)="showOptionsMenu($event)" *ngIf="optionsMenuEnabled">
|
<button ion-button icon-only clear color="dark" (click)="showOptionsMenu($event)" *ngIf="optionsMenuEnabled" [attr.aria-label]="('core.displayoptions' | translate)">
|
||||||
<core-icon name="more"></core-icon>
|
<core-icon name="more"></core-icon>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
<ion-note float-end padding-left text-end *ngIf="trackPosts && !post.postread" [attr.aria-label]="'addon.mod_forum.unread' | translate">
|
<ion-note float-end padding-left text-end *ngIf="trackPosts && !post.postread" [attr.aria-label]="'addon.mod_forum.unread' | translate">
|
||||||
<core-icon name="fa-circle" color="primary"></core-icon>
|
<core-icon name="fa-circle" color="primary"></core-icon>
|
||||||
</ion-note>
|
</ion-note>
|
||||||
<button ion-button icon-only clear color="dark" (click)="showOptionsMenu($event)" *ngIf="optionsMenuEnabled">
|
<button ion-button icon-only clear color="dark" (click)="showOptionsMenu($event)" *ngIf="optionsMenuEnabled" [attr.aria-label]="('core.displayoptions' | translate)">
|
||||||
<core-icon name="more"></core-icon>
|
<core-icon name="more"></core-icon>
|
||||||
</button>
|
</button>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
|
@ -683,6 +683,7 @@ ion-app.app-root {
|
||||||
|
|
||||||
.alert-message {
|
.alert-message {
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
user-select: text;
|
||||||
}
|
}
|
||||||
ion-alert.core-nohead {
|
ion-alert.core-nohead {
|
||||||
|
|
||||||
|
|
|
@ -1476,6 +1476,7 @@
|
||||||
"core.digitalminor_desc": "Please ask your parent/guardian to contact:",
|
"core.digitalminor_desc": "Please ask your parent/guardian to contact:",
|
||||||
"core.discard": "Discard",
|
"core.discard": "Discard",
|
||||||
"core.dismiss": "Dismiss",
|
"core.dismiss": "Dismiss",
|
||||||
|
"core.displayoptions": "Display options",
|
||||||
"core.done": "Done",
|
"core.done": "Done",
|
||||||
"core.download": "Download",
|
"core.download": "Download",
|
||||||
"core.downloaded": "Downloaded",
|
"core.downloaded": "Downloaded",
|
||||||
|
|
|
@ -70,7 +70,7 @@ export class CoreContextMenuComponent implements OnInit, OnDestroy {
|
||||||
*/
|
*/
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.icon = this.icon || 'more';
|
this.icon = this.icon || 'more';
|
||||||
this.ariaLabel = this.ariaLabel || this.title || this.translate.instant('core.info');
|
this.ariaLabel = this.ariaLabel || this.title || this.translate.instant('core.displayoptions');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
<ion-icon *ngIf="downloadCourseEnabled && prefetchCourseData.downloadSucceeded && !showSpinner" class="core-icon-downloaded" name="cloud-done" color="success" [attr.aria-label]="'core.downloaded' | translate" role="status"></ion-icon>
|
<ion-icon *ngIf="downloadCourseEnabled && prefetchCourseData.downloadSucceeded && !showSpinner" class="core-icon-downloaded" name="cloud-done" color="success" [attr.aria-label]="'core.downloaded' | translate" role="status"></ion-icon>
|
||||||
|
|
||||||
<!-- Options menu. -->
|
<!-- Options menu. -->
|
||||||
<button ion-button icon-only clear color="dark" (click)="showCourseOptionsMenu($event)" *ngIf="!showSpinner">
|
<button ion-button icon-only clear color="dark" (click)="showCourseOptionsMenu($event)" *ngIf="!showSpinner" [attr.aria-label]="('core.displayoptions' | translate)">
|
||||||
<core-icon name="more"></core-icon>
|
<core-icon name="more"></core-icon>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -74,6 +74,7 @@
|
||||||
"digitalminor_desc": "Please ask your parent/guardian to contact:",
|
"digitalminor_desc": "Please ask your parent/guardian to contact:",
|
||||||
"discard": "Discard",
|
"discard": "Discard",
|
||||||
"dismiss": "Dismiss",
|
"dismiss": "Dismiss",
|
||||||
|
"displayoptions": "Display options",
|
||||||
"done": "Done",
|
"done": "Done",
|
||||||
"download": "Download",
|
"download": "Download",
|
||||||
"downloaded": "Downloaded",
|
"downloaded": "Downloaded",
|
||||||
|
|
Loading…
Reference in New Issue