canonical / canonical/vanilla-framework

Slider component isn't accessible

Open
#4,259 2 comments 0 reactions 0 assignees View on GitHub
Accessibility P3 Triaged Priority: Medium Triaged: Pragma
Dominant language
HTML
Stars
983
Forks
216
Avg merge
3d 13h
Merged PRs (30d)
3

Description

- It doesn't have an `aria-valuenow` property, do we need to add this? As it will need to be updated with Javascript. Maybe we could add aria-hidden to the slider and allow screen reader users to just use the input field.
- We use `min` and `max` values but the [WCAG guidelines](https://www.w3.org/TR/wai-aria-practices-1.1/#slider_roles_states_props) suggest using `aria-valuemin` and `aria-valuemax` too.

Contributor guide

Open the contributing guide

Research direction

Start with the slider component and its associated input field, then review the linked WCAG slider guidance. Check how the slider's value, minimum, and maximum are currently exposed and updated. Done means the component communicates the correct accessible values to screen readers without breaking input behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, javascript
Domain
accessibility, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.