Repository navigation
[slider] Remove extra TalkBack focus targets - #4242
Conversation
commit: |
Bundle size report
Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
In Firefox:
Since Firefox is weird either way it's probably OK if it fixes the issue for TalkBack |
Not always, only if you've never interacted with another focusable element before. (Same as the issue we had some time ago.) That said, FF supports |
122b4b1 to
22da2cb
Compare
Code reviewFound 1 issue:
base-ui/packages/react/src/slider/thumb/SliderThumb.test.tsx Lines 196 to 200 in 22da2cb 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
Codex Review (GPT-5.4)This remains a narrow slider bug-fix PR, and I reviewed the full rebased branch diff against freshly fetched 1. Remaining Bugs / Issues (None)2. Root Cause & Patch AssessmentThe runtime shape now looks coherent for the bug this PR is trying to fix. Pointer-driven focusing still suppresses The latest follow-up also tightens that path by suppressing bubbled 3. Edge Cases Worth NotingThe non-obvious part of the patch is still the guarded blur/refocus used to restore 4. Test Coverage AssessmentValidation I ran on the current rebased head:
The key coverage improvement is the new browser regression in 5. Previous Review Issues StatusResolved: the earlier review note about newly introduced chai-style assertions was addressed, and the later follow-up concern about missing coverage for the blur-suppression branch is now covered by the new thumb-level regression. The branch also includes the follow-up typecheck fix and has been rebased onto current Merge Confidence ScoreOverall merge confidence is 4/5. I’m highly confident in the current patch: the full rebased diff is still small, the critical browser-specific interaction path has direct Chromium coverage, and I did not find any remaining correctness issue in the branch review. The residual risk is mostly the usual browser nuance around nonstandard |
5b67122 to
c6a6eaf
Compare
|
I manually verified this works in TalkBack now. |
Fixes #2575
Removing the
tabIndex={-1}from both wrappers makes TalkBack land on the actualinput[type="range"]only, which is the element that correctly handles increase/decrease actionsPreview: https://deploy-preview-4242--base-ui.netlify.app/react/components/slider