Skip to content

Commit

Permalink
Update slider.ts
Browse files Browse the repository at this point in the history
Add missing role attribute to second slider on range type slide to pass chrome lighthouse accessibility audit.
  • Loading branch information
rmcclell authored Aug 12, 2024
1 parent 2929519 commit e2b8bac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/components/slider/slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export const SLIDER_VALUE_ACCESSOR: any = {
(touchmove)="onDrag($event, 1)"
(touchend)="onDragEnd($event)"
[attr.tabindex]="disabled ? null : tabindex"
role="slider"
[attr.aria-valuemin]="min"
[attr.aria-valuenow]="value ? value[1] : null"
[attr.aria-valuemax]="max"
Expand Down

0 comments on commit e2b8bac

Please sign in to comment.