Skip to content

Commit

Permalink
Merge pull request #696 from DadUndead/master
Browse files Browse the repository at this point in the history
fix(controls): Set ARIA orientation in VgVolume, Set play/pause button ARIA label depends on current state.
  • Loading branch information
Elecash authored Apr 1, 2018
2 parents 0416174 + 5343bca commit b4447bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls/vg-play-pause/vg-play-pause.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Subscription } from 'rxjs/Subscription';
[class.vg-icon-play_arrow]="getState() === 'paused' || getState() === 'ended'"
tabindex="0"
role="button"
aria-label="play pause button"
[attr.aria-label]="getState() === 'paused'?'play':'pause'"
[attr.aria-valuetext]="ariaValue">
</div>`,
styles: [ `
Expand Down
1 change: 1 addition & 0 deletions src/controls/vg-volume/vg-volume.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { Subscription } from 'rxjs/Subscription';
[attr.aria-valuenow]="ariaValue"
aria-valuemin="0"
aria-valuemax="100"
aria-orientation="horizontal"
[attr.aria-valuetext]="ariaValue + '%'"
(click)="onClick($event)"
(mousedown)="onMouseDown($event)">
Expand Down

0 comments on commit b4447bf

Please sign in to comment.