Skip to content

Commit 25ec0bc

Browse files
Clupai8o0maplefoxgitKimSreng1Tyler2811SanjanaBottu
committed
fix(a11y): accessibility fixes
Brings the T2 2026 a11y work from ontrack-features-t2-2026 integration/t2-2026 onto 11.0.x. Co-authored-by: maplefoxgit <s223932052@deakin.edu.au> Co-authored-by: Kimsreng <kimsrengin@gmail.com> Co-authored-by: Tan Tai <s224621011@deakin.edu.au> Co-authored-by: SanjanaBottu <bottusanjanasridhar@gmail.com> Co-authored-by: Niethin <niethinrueshil@gmail.com> Co-authored-by: baohuy-tran <baohuy.tranaus@gmail.com>
1 parent 20d1f38 commit 25ec0bc

7 files changed

Lines changed: 471 additions & 361 deletions

File tree

‎src/app/common/header/unit-dropdown/unit-dropdown.component.html‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</div>
2424

2525
<mat-menu #menu="matMenu" class="unit-dropdown-menu">
26-
@if (media.isActive('xs')) {
26+
@if (isExtraSmall) {
2727
<button mat-menu-item routerLink="/home">
2828
<mat-icon
2929
aria-label="Home Icon"
@@ -35,24 +35,25 @@
3535
<span class="flex-grow"></span>
3636
</button>
3737
}
38-
@if (media.isActive('xs')) {
38+
@if (isExtraSmall) {
3939
<mat-divider></mat-divider>
4040
}
4141

4242
<h2 class="my-2 ml-3.5" mat-subheader [hidden]="unitRoles?.length === 0">Units you teach</h2>
4343
@for (unitRole of unitRoles; track unitRole) {
4444
@if (!unitRole.unit.teachingPeriod || unitRole.unit.teachingPeriod?.active) {
45-
<div
45+
<button
4646
class="w-full"
4747
mat-menu-item
48+
type="button"
4849
[routerLink]="['/units', unitRole.unit.id, 'tasks', 'inbox']"
4950
>
5051
<div class="flex w-full items-center">
5152
<div class="unitName max-w-[220px] flex-none truncate">{{ unitRole.unit.name }}</div>
5253
<div class="grow"></div>
5354
<f-unit-code [unit_code]="unitRole.unit.code" [width]="80"></f-unit-code>
5455
</div>
55-
</div>
56+
</button>
5657
}
5758
}
5859

‎src/app/common/modals/scorm-extension-modal/scorm-extension-modal.component.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h3 mat-dialog-title>Extra attempt request</h3>
3030
</div>
3131

3232
<div mat-dialog-actions style="float: right">
33-
<button color="warn" mat-dialog-close mat-stroked-button>Cancel</button>
33+
<button mat-dialog-close mat-stroked-button>Cancel</button>
3434
<button
3535
color="primary"
3636
mat-button

‎src/app/common/modals/spec-con-modal/spec-con-modal.component.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h3 mat-dialog-title>Grant Extension / Special Consideration</h3>
1111
</div>
1212

1313
<div mat-dialog-actions style="float: right">
14-
<button color="warn" mat-dialog-close mat-stroked-button>Cancel</button>
14+
<button mat-dialog-close mat-stroked-button>Cancel</button>
1515
<button
1616
color="primary"
1717
mat-button

‎src/app/common/modals/task-assessment-modal/task-assessment-modal.component.html‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<div class="submission-history-modal">
22
<h3 class="panel-title" mat-dialog-title>Overseer Assessment</h3>
33
<mat-dialog-content style="height: calc(100% - 7em)">
4-
<f-task-overseer-report [loadOverseerAssessmentId]="overseerAssessmentId" [task]="task">
4+
<f-task-overseer-report
5+
[inDialog]="true"
6+
[loadOverseerAssessmentId]="overseerAssessmentId"
7+
[task]="task"
8+
>
59
</f-task-overseer-report>
610
</mat-dialog-content>
711
<div mat-dialog-actions style="float: right">
@@ -16,6 +20,6 @@ <h3 class="panel-title" mat-dialog-title>Overseer Assessment</h3>
1620
<mat-icon inline>refresh</mat-icon> Refresh
1721
</button>
1822
}
19-
<button color="warn" mat-dialog-close mat-stroked-button>Cancel</button>
23+
<button mat-dialog-close mat-stroked-button>Cancel</button>
2024
</div>
2125
</div>

‎src/app/sessions/states/sign-in/sign-in.component.html‎

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
<section class="welcome custom-md-h-screen flex flex-row">
1+
<section class="welcome signed-out-shell flex flex-row">
22
<f-hero-sidebar class="sidebar h-full flex-col self-start"></f-hero-sidebar>
3-
<section class="content custom-md-h-screen flex flex-col">
3+
<section class="content signed-out-content flex min-w-0 flex-1 flex-col">
44
@if (!isLoading) {
55
@if (!isLoading) {
6-
<div class="m-auto w-full max-w-md p-4">
6+
<div class="signed-out-card m-auto w-full max-w-md p-4">
77
<div class="subcontainer">
8-
<div class="wordmark flex-row place-content-start">
9-
<img alt="Homepage Logo" src="../../../assets/images/logo-bw.svg" width="40px" />
8+
<div class="wordmark flex-row items-center justify-center text-center">
9+
<img alt="OnTrack logo" src="/assets/images/logo.svg" width="40px" />
1010
<p>{{ externalName.value }}</p>
1111
</div>
12-
<h1 class="welcome-heading flex flex-row place-content-start">
12+
<h1 class="welcome-heading flex flex-row justify-center text-center">
1313
Welcome to {{ externalName.value }}
1414
</h1>
1515
<form
@@ -27,13 +27,20 @@ <h1 class="welcome-heading flex flex-row place-content-start">
2727
@if (showCredentials) {
2828
<mat-form-field appearance="outline" class="size-full flex-1">
2929
<mat-label>Username</mat-label>
30-
<input matInput name="username" required [(ngModel)]="formData.username" />
30+
<input
31+
autocomplete="username"
32+
matInput
33+
name="username"
34+
required
35+
[(ngModel)]="formData.username"
36+
/>
3137
</mat-form-field>
3238
}
3339
@if (showCredentials) {
3440
<mat-form-field appearance="outline" class="size-full flex-1">
3541
<mat-label>Password</mat-label>
3642
<input
43+
autocomplete="current-password"
3744
matInput
3845
name="password"
3946
required

‎src/app/tasks/task-comments-viewer/comment-bubble-action/comment-bubble-action.component.html‎

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,36 @@
33
aria-label="React to this comment">
44
<mat-icon>tag_faces</mat-icon>
55
</button> -->
6-
<mat-icon
7-
aria-label="Example icon-button with a heart icon"
6+
<button
7+
aria-label="Reply to this comment"
8+
class="bubble-action"
89
matTooltip="Reply to this comment"
910
matTooltipPosition="above"
1011
type="button"
1112
(click)="reply()"
1213
>
13-
reply</mat-icon
14-
>
15-
<mat-icon
14+
<mat-icon>reply</mat-icon>
15+
</button>
16+
<button
1617
aria-label="Edit this comment"
18+
class="bubble-action"
1719
matTooltip="Edit this comment"
1820
matTooltipPosition="above"
1921
type="button"
2022
[hidden]="!comment.currentUserCanEdit"
2123
(click)="edit()"
2224
>
23-
edit</mat-icon
24-
>
25-
<mat-icon
26-
aria-label="Example icon-button with a heart icon"
25+
<mat-icon>edit</mat-icon>
26+
</button>
27+
<button
28+
aria-label="Delete this comment"
29+
class="bubble-action"
2730
matTooltip="Delete this comment"
2831
matTooltipPosition="above"
2932
type="button"
3033
[hidden]="!comment.currentUserCanDelete"
3134
(click)="delete()"
3235
>
33-
delete</mat-icon
34-
>
36+
<mat-icon>delete</mat-icon>
37+
</button>
3538
</div>

0 commit comments

Comments
 (0)