Skip to content

Commit

Permalink
make datepicker more accessible
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 committed Aug 29, 2019
1 parent e26edc1 commit fc84c8c
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 fc84c8c

Please sign in to comment.