Skip to content

Commit

Permalink
fix(datepicker): fixed broken bindings for aria-labelby and ids (#1055)
Browse files Browse the repository at this point in the history
  • Loading branch information
halfzebra authored and valorkin committed Oct 4, 2016
1 parent 969a61a commit 26d9209
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/datepicker/daypicker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const TEMPLATE_OPTIONS:any = {
@Component({
selector: 'daypicker',
template: `
<table *ngIf="datePicker.datepickerMode==='day'" role="grid" aria-labelledby="uniqueId+'-title'" aria-activedescendant="activeDateId">
<table *ngIf="datePicker.datepickerMode==='day'" role="grid" [attr.aria-labelledby]="datePicker.uniqueId+'-title'" aria-activedescendant="activeDateId">
<thead>
<tr>
<th>
Expand Down
2 changes: 1 addition & 1 deletion components/datepicker/monthpicker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { DatePickerInnerComponent } from './datepicker-inner.component';
<i class="glyphicon glyphicon-chevron-left"></i>
</button></th>
<th>
<button [id]="uniqueId + '-title'"
<button [id]="datePicker.uniqueId + '-title'"
type="button" class="btn btn-default btn-sm"
(click)="datePicker.toggleMode()"
[disabled]="datePicker.datepickerMode === maxMode"
Expand Down
2 changes: 1 addition & 1 deletion components/datepicker/yearpicker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { DatePickerInnerComponent } from './datepicker-inner.component';
</button>
</th>
<th colspan="3">
<button [id]="uniqueId + '-title'" role="heading"
<button [id]="datePicker.uniqueId + '-title'" role="heading"
type="button" class="btn btn-default btn-sm"
(click)="datePicker.toggleMode()"
[disabled]="datePicker.datepickerMode === datePicker.maxMode"
Expand Down

0 comments on commit 26d9209

Please sign in to comment.