Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to update aria label value #359

Open
pkhand0 opened this issue Aug 8, 2023 · 1 comment
Open

how to update aria label value #359

pkhand0 opened this issue Aug 8, 2023 · 1 comment

Comments

@pkhand0
Copy link

pkhand0 commented Aug 8, 2023

Hi,

we are using below code snippet to show the price slider on our site but we are getting ADA compliance issue for this.

<ngx-slider *ngIf="isBrowser" [(value)]="min" [(highValue)]="max" [options]="options" (userChangeEnd)="appliedFilter($event)" >

ADA compliance issue reported : aria-label attribute is not well supported on a ngx-slider with no valid role attribute.

to fix this we tried. -

<ngx-slider *ngIf="isBrowser" [(value)]="min" [(highValue)]="max" [options]="options" (userChangeEnd)="appliedFilter($event)" role="slider" aria-label="Select a range">

Also tried to update like below :

options: Options = {
floor: 0,
ceil: 10000,
ariaLabel: "Select a Price"
};

but still seeing same when inspecting code -

Can you please check and let us know.. how to update the aria-label value to fix the compliance issue.

@mikepenzin
Copy link

mikepenzin commented Jul 7, 2024

I have some kind of the same issue. We don't see update of options (ceil / floor & etc.) once it updated dynamically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants