Skip to content

fix(segment): use a single roving tab stop - #31529

Open
minwookshin wants to merge 1 commit into
ionic-team:mainfrom
minwookshin:fix/segment-roving-tabindex-30022
Open

minwookshin wants to merge 1 commit into
ionic-team:mainfrom
minwookshin:fix/segment-roving-tabindex-30022

Conversation

@minwookshin

Copy link
Copy Markdown

Issue number: resolves #30022

What is the current behavior?

Every segment button is a Tab stop, so entering the segment misses the selected button and Tab cycles through the group.

What is the new behavior?

The selected enabled button is the entry point, falling back to the first enabled button. Arrow-key focus remains separate from selection in manual activation mode, and Tab/Shift+Tab leave the group. The tab stop updates when buttons change, become disabled, or reconnect.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Confirmed the new keyboard regression fails before the fix. Verified 54 Playwright checks across Chromium, Firefox and WebKit, iOS/MD styles and LTR/RTL; the Stencil spec run passed 87 suites / 794 tests. Build and targeted ESLint/Prettier checks passed.

#31431 handles ARIA position/count separately; this change is limited to keyboard tab stops. Browser tests use emulated viewports, not physical iOS devices.

@minwookshin
minwookshin requested a review from a team as a code owner October 3, 2026 02:31
@minwookshin
minwookshin requested a review from thetaPC October 3, 2026 02:31
@vercel

vercel Bot commented Oct 3, 2026

Copy link
Copy Markdown

@minwookshin is attempting to deploy a commit to the Ionic Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the package: core @ionic/core package label Oct 3, 2026

This branch has not been deployed

No deployments
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.

bug: ion-segment have incorrect tab sequence order (accessibility)

1 participant