Skip to content

Commit

Permalink
fix(datepicker): added role="row" in weekday header for a11y (#3361)
Browse files Browse the repository at this point in the history
row="columnheader" needs a parent with a role="row"
  • Loading branch information
qub1t authored and Benoit Charbonnier committed Sep 11, 2019
1 parent c7bc4d7 commit b16a0ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datepicker/datepicker-month-view.ts
Expand Up @@ -10,7 +10,7 @@ import {DayTemplateContext} from './datepicker-day-template-context';
encapsulation: ViewEncapsulation.None,
styleUrls: ['./datepicker-month-view.scss'],
template: `
<div *ngIf="showWeekdays" class="ngb-dp-week ngb-dp-weekdays">
<div *ngIf="showWeekdays" class="ngb-dp-week ngb-dp-weekdays" role="row">
<div *ngIf="showWeekNumbers" class="ngb-dp-weekday ngb-dp-showweek"></div>
<div *ngFor="let w of month.weekdays" class="ngb-dp-weekday small" role="columnheader">
{{ i18n.getWeekdayShortName(w) }}
Expand Down

0 comments on commit b16a0ca

Please sign in to comment.