Skip to content

Commit

Permalink
fix(a11y): missing role=row
Browse files Browse the repository at this point in the history
After the addition of ```role="columnheader"``` (ng-bootstrap#3343), the parent div needs role="row", just like all consecutive sibling divs
  • Loading branch information
qub1t committed Sep 5, 2019
1 parent fc84c8c commit be09ecc
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 bg-light">
<div *ngIf="showWeekdays" class="ngb-dp-week ngb-dp-weekdays bg-light" 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 be09ecc

Please sign in to comment.