Skip to content

[slider] Broken TalkBack support #2575

Description

@oliviertassinari

Current behavior

Record_2025-08-23-13-19-19_40deb401b9ffe8e1df2f1cc5ba480b12.mp4

I don't know if there is a way to write a test that would assert this, I can't find any. It actually looks like the only way to fix this is to use <input type="range">. When I dive into the source of Chrome, It seems that the issue is https://issues.chromium.org/issues/40816094.

I started digging the issue and I discovered that Talkback does not use increase and decrease actions. Instead, it calls the "set value" action on the slider, which is supported because it's an element.

There was some exploration to fix with evolving the platform e.g. WICG/aom#183, but it was abandoned.

Expected behavior

Can increase/decrease with TalkBack.

Reproducible example

Open https://master--base-ui.netlify.app/react/components/slider

Base UI version

For example v1.0.0-beta.2

Which browser are you using?

Chrome

Which OS are you using?

Android

Additional context

Same bug as:

React Aria does this correctly.

Activity

  1. added
    status: waiting for maintainer
    component: slider
    type: bug
    and removed
    type: bug
    status: waiting for maintainer
    on Aug 24, 2025
  2. added
    type: regression
    and removed
    type: bug
    on Aug 24, 2025
  3. moved this from Future to In progress in Base UI public roadmapon Aug 26, 2025
  4. github-actions commented on Aug 28, 2025

    @github-actions

    This fix will be available in the next npm release of Base UI.

    In the meantime, you can try it out on our Canary release channel:

    npm i https://pkg.pr.new/@base-ui-components/react@2578
  5. oliviertassinari commented on Sep 2, 2025

    @oliviertassinari
    MemberAuthor

    I'm reopening, it's still broken in master, I believe it was OK at this checkpoint: #2578 (comment). The problem now is that there are too many focusable elements:

    1. There is a strange tabIndex={-1} on the Slider.Control that intercepts the focus. https://github.com/mui/base-ui/pull/2578/files#diff-e1bcd14932c11ca74dfae02c7948a9231878801c27440cd7f849f19bbb333fedR416. It seems an easy one to remove.
    2. There are two inputs; the second one intercepts the focus, which makes it very hard to increase and decrease the value.
    Screen.Recording.2025-09-03.at.00.29.44.mov

    https://live.browserstack.com/dashboard#os=android&os_version=15.0&device=Samsung+Galaxy+S25&device_browser=chrome&zoom_to_fit=true&full_screen=true&url=https%3A%2F%2Fbase-ui.com%2Freact%2Fcomponents%2Fslider&speed=1

  6. mj12albert commented on Sep 2, 2025

    @mj12albert
    Member
    1. There is a strange tabIndex={-1} on the Slider.Control that intercepts the focus

    Hmm this was needed for #2584 in order to make the programmatic focus transferrable 🤔

    There is a Chromium issue about this https://issues.chromium.org/issues/40875648 (main point being the difference with iOS VO)

  7. oliviertassinari commented on Sep 3, 2025

    @oliviertassinari
    MemberAuthor

    Ok, 1. is not the end of the world, I can see the rational to sacrifice TalkBack users for regular users (x10+ more of them).

    Point 2. is really where the pain is at.

  8. mj12albert commented on Sep 3, 2025

    @mj12albert
    Member

    2. There are two inputs; the second one intercepts the focus

    The cause is the same as https://issues.chromium.org/issues/40875648 as TalkBack will focus on tabindex="-1" elements,

    For slider since the range inputs are directly focusable now perhaps the hidden inputs are no longer needed

    Though there are a lot of elements in other components (mostly inputs) that are "hidden" in this manner as well: https://github.com/search?q=repo%3Amui%2Fbase-ui%20tabIndex%3A%20-1&type=code

  9. oliviertassinari commented on Sep 18, 2025

    @oliviertassinari
    MemberAuthor

    The cause is the same as https://issues.chromium.org/issues/40875648 as TalkBack will focus on tabindex="-1" elements,

    Oh, annoying bug, upvoted:
    Image

    Though there are a lot of elements in other components (mostly inputs) that are "hidden" in this manner as well: https://github.com/search?q=repo%3Amui%2Fbase-ui%20tabIndex%3A%20-1&type=code

    I have played with those instances in TalkBalk. Most cases are about setting the tabIndex on elements that would be focused anyway by TalkBack, no issues. One (dialog) seems to be the same as case 1. ⬆️, meaning, the element focused is clear, it's OK-ish.

    What we have with the Slider seems unique: users have two overlapping focus areas, they don't know which one works.

    For slider since the range inputs are directly focusable now, perhaps the hidden inputs are no longer needed

    The hidden input is gone #2631. So, we can simply solve this issue by deleting this line?

  10. removed their assignment
    on Mar 3, 2026
  11. github-actions commented on Mar 25, 2026

    @github-actions

    This fix will be available in the next npm release of Base UI.

    In the meantime, you can try it out on our Canary release channel:

    npm i https://pkg.pr.new/@base-ui/react@4242
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibilitycomponent: slidertype: regression

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions