Skip to content

Commit

Permalink
fix: make datepicker more accessible (#3343)
Browse files Browse the repository at this point in the history
A finding of an a11y test on a project, where the Datepicker is used, was that the proposed columnheader role is missing, thus making the datepicker not accessible for blind users.
  • Loading branch information
qub1t authored and Benoit Charbonnier committed Sep 5, 2019
1 parent 7d86141 commit 8260198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datepicker/datepicker-month-view.ts
Expand Up @@ -12,7 +12,7 @@ import {DayTemplateContext} from './datepicker-day-template-context';
template: `
<div *ngIf="showWeekdays" class="ngb-dp-week ngb-dp-weekdays bg-light">
<div *ngIf="showWeekNumbers" class="ngb-dp-weekday ngb-dp-showweek"></div>
<div *ngFor="let w of month.weekdays" class="ngb-dp-weekday small">
<div *ngFor="let w of month.weekdays" class="ngb-dp-weekday small" role="columnheader">
{{ i18n.getWeekdayShortName(w) }}
</div>
</div>
Expand Down

0 comments on commit 8260198

Please sign in to comment.