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

Slider: The inputs are not synced #1843

Open
1 task done
chijun950314 opened this issue Nov 27, 2024 · 2 comments
Open
1 task done

Slider: The inputs are not synced #1843

chijun950314 opened this issue Nov 27, 2024 · 2 comments
Labels
Comp: Slider Type: Bug Something isn't working

Comments

@chijun950314
Copy link

chijun950314 commented Nov 27, 2024

Slider: different value read by screen reader when step is not 1 and hasTextbox is true

Bug already reported?

  • I confirm that I have checked if the bug already has been reported

For which framework/library you are reporting the bug

React, Angular

Component name

slider

Description

During the step is set as value other than 1 and with input text box being activated, direct change on input text box will actually causing the reader has two different value, if the value entered by the user is not able to get using the slider.
image

Steps To Reproduce

  1. Set the step attribute to 1000, hasTextbox to true
  2. Change input text value to 1500.
  3. Open screen reader and tab through the text box and slider.
  4. Screen reader will read 1500 for the input but 1600 for the slider.

Current Behaviour

Wrong value spoke from the screen reader.

Expected Behaviour

The screen reader shall read the same value for both the input box and slider.

@chijun950314 chijun950314 added the Type: Bug Something isn't working label Nov 27, 2024
@chijun950314
Copy link
Author

Maybe for your references:

https://www.w3.org/WAI/ARIA/apg/patterns/slider/

@EldRoos EldRoos changed the title Slider: different value read by screen reader when step is not 1 and hasTextbox is true Slider: The inputs are not synced Nov 28, 2024
@EldRoos
Copy link
Contributor

EldRoos commented Dec 18, 2024

I cannot reproduce this error on storybook with NVDA:
https://storybook.seb.io/latest/react/?path=/story/components-slider--textbox
https://storybook.seb.io/latest/angular/?path=/story/components-slider--textbox

What screenreader shows this differently and what code example? @chijun950314

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Comp: Slider Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants