Skip to content

Slider: range mode aria-valuenow isn't related to actual values #4242

@ribrown-bishs

Description

@ribrown-bishs

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.
image

image

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

  1. Drag one of the handles of the slider
  2. Inspect the slider handle element
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: AccessibilityIssue or pull request is related to WCAG or ARIAType: BugIssue contains a defect related to a specific component.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions