Skip to content

Commit 3bdfc38

Browse files
Fix System-wide Alert accessibility issues
- Added missing aria-label to buttons
1 parent 3628c84 commit 3bdfc38

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/app/system-wide-alert/alert-form/system-wide-alert-form.component.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ <h2 id="header">{{'system-wide-alert.form.header' | translate}}</h2>
3030
<div class="row">
3131
<div class="col mb-2 d-flex align-items-end">
3232
<ui-switch size="small"
33+
[ariaLabel]="'system-wide-alert.form.label.countdownTo.enable' | translate"
3334
[checked]="counterEnabled$ |async"
3435
(change)="setCounterEnabled($event)"></ui-switch>
3536
<span class="ml-2">{{ 'system-wide-alert.form.label.countdownTo.enable' | translate }}</span>
@@ -49,8 +50,9 @@ <h2 id="header">{{'system-wide-alert.form.header' | translate}}</h2>
4950
#d="ngbDatepicker"
5051
(ngModelChange)="updatePreviewTime()"
5152
/>
52-
<button class="btn btn-outline-secondary fas fa-calendar" (click)="d.toggle()"
53-
type="button"></button>
53+
<button [attr.aria-label]="'system-wide-alert-form.select-date-by-calendar' | translate"
54+
(click)="d.toggle()" class="btn btn-outline-secondary fas fa-calendar" type="button">
55+
</button>
5456
</div>
5557
</div>
5658
<div class="col-12 d-md-none">

src/assets/i18n/en.json5

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5168,6 +5168,8 @@
51685168

51695169
"system-wide-alert.form.label.countdownTo.hint": "Hint: Set a countdown timer. When enabled, a date can be set in the future and the system-wide alert banner will perform a countdown to the set date. When this timer ends, it will disappear from the alert. The server will NOT be automatically stopped.",
51705170

5171+
"system-wide-alert-form.select-date-by-calendar": "Select date using calendar",
5172+
51715173
"system-wide-alert.form.label.preview": "System-wide alert preview",
51725174

51735175
"system-wide-alert.form.update.success": "The system-wide alert was successfully updated",

0 commit comments

Comments
 (0)