Skip to content

fix(range): improve focus and blur handling for dual knobs #30482

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

Merged
merged 4 commits into from
Jun 13, 2025
Merged

Conversation

ShaneK
Copy link
Member

@ShaneK ShaneK commented Jun 12, 2025

Issue number: resolves #internal


What is the current behavior?

Currently, if you use keyboard navigation to move between dual range slider knobs, only the first knob you navigate to is highlighted. This is because both elements in the same component are marked as focusable and the code that manages focusable doesn't take into account multiple elements in the same component.

Screenshot-2025-06-12.at.09.23.48.mp4

What is the new behavior?

After these changes, we manage focusing on dual knob range sliders manually, so using tab navigation through dual knob range sliders focuses knobs as expected.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Test - Range - Basic screen

@ShaneK ShaneK requested a review from a team as a code owner June 12, 2025 16:09
@ShaneK ShaneK requested a review from christian-bromann June 12, 2025 16:09
Copy link

vercel bot commented Jun 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 13, 2025 4:28pm

@github-actions github-actions bot added the package: core @ionic/core package label Jun 12, 2025
Copy link
Member

@brandyscarney brandyscarney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and works well! One optional comment on an additional test we could add.

Copy link
Contributor

@thetaPC thetaPC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, left a question but it's not a blocker

@ShaneK ShaneK added this pull request to the merge queue Jun 13, 2025
Merged via the queue into main with commit 6811fe5 Jun 13, 2025
50 checks passed
@ShaneK ShaneK deleted the FW-6401 branch June 13, 2025 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants