From e2b8bac516a5be8b71d84731d234a79d1ba6eda7 Mon Sep 17 00:00:00 2001 From: rmcclell Date: Mon, 12 Aug 2024 13:00:50 -0600 Subject: [PATCH] Update slider.ts Add missing role attribute to second slider on range type slide to pass chrome lighthouse accessibility audit. --- src/app/components/slider/slider.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/components/slider/slider.ts b/src/app/components/slider/slider.ts index 36687376549..42756b8df47 100755 --- a/src/app/components/slider/slider.ts +++ b/src/app/components/slider/slider.ts @@ -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"