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

Allow aria-valuetext for elements with role="slider" #12145

Open
mhkeller opened this issue Jun 22, 2024 · 0 comments
Open

Allow aria-valuetext for elements with role="slider" #12145

mhkeller opened this issue Jun 22, 2024 · 0 comments

Comments

@mhkeller
Copy link

mhkeller commented Jun 22, 2024

Describe the bug

I have a brushable chart and the brush has a role of "slider". The Svelte compiler is telling me that I also need an aria-valuenow prop, which has to be a number. The value of brush is a range and can't be expressed as a number and so I am setting aria-valuetext. If I'm understanding the aria rules right, this seems like an acceptable setup but the compiler still issues a warning.

Reproduction

https://svelte.dev/repl/a38eed6f21374b7ca4f903731487d4e2?version=4.2.18

Logs

No response

System Info

Svelte 4.2.18

Severity

annoyance

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

1 participant