-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Component: AccessibilityIssue or pull request is related to WCAG or ARIAIssue or pull request is related to WCAG or ARIAType: BugIssue contains a defect related to a specific component.Issue contains a defect related to a specific component.
Milestone
Description
Describe the bug
When using the slider with step 5, min 10, max 50, I would expect that the aria-valuenow would reflect the steps' values when they are selected. However, the aria-valuenow is instead a copy of the style="left: ... percentage.

Reproducer
https://codesandbox.io/s/primereact-test-forked-31vw6s?file=/src/index.js
PrimeReact version
9.2.2
React version
18.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
- Drag one of the handles of the slider
- Inspect the slider handle element
- View the aria-valuenow (as compared to the steps that should be there, between 10-50 by fives)
Expected behavior
The handle's aria-valuenow value should be the same as the "selected" step value. In this example, if I drag the left side handle up 1 step, the value should be 15.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Component: AccessibilityIssue or pull request is related to WCAG or ARIAIssue or pull request is related to WCAG or ARIAType: BugIssue contains a defect related to a specific component.Issue contains a defect related to a specific component.
