MOBILE-4565 a11y: Add aria-current=date to calendar

main
Pau Ferrer Ocaña 2024-04-15 15:43:57 +02:00
parent b71fb0ae05
commit 84ad9c1e97
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,8 @@
"weekend": day.isweekend, "weekend": day.isweekend,
"duration_finish": day.haslastdayofevent "duration_finish": day.haslastdayofevent
}' [class.addon-calendar-event-past-day]="month.isPastMonth || day.ispast" role="cell" }' [class.addon-calendar-event-past-day]="month.isPastMonth || day.ispast" role="cell"
(ariaButtonClick)="dayClicked(day.mday)" [tabindex]="activeView ? 0 : -1"> (ariaButtonClick)="dayClicked(day.mday)" [tabindex]="activeView ? 0 : -1"
[attr.aria-current]="month.isCurrentMonth && day.istoday ? 'date' : null">
<p class="addon-calendar-day-number"> <p class="addon-calendar-day-number">
<span aria-hidden="true">{{ day.mday }}</span> <span aria-hidden="true">{{ day.mday }}</span>
<span class="sr-only">{{ day.periodName | translate }}</span> <span class="sr-only">{{ day.periodName | translate }}</span>