Skip to content

fix(web-components): change tabindex assignment logic for button and switch#35840

Closed
chrisdholt wants to merge 3 commits intomicrosoft:masterfrom
chrisdholt:users/chhol/fix-tabindex-issues-across-components-during-ssr
Closed

fix(web-components): change tabindex assignment logic for button and switch#35840
chrisdholt wants to merge 3 commits intomicrosoft:masterfrom
chrisdholt:users/chhol/fix-tabindex-issues-across-components-during-ssr

Conversation

@chrisdholt
Copy link
Copy Markdown
Member

Previous Behavior

Tabindex was assigned as part of the disabledChanged callback.

New Behavior

This change updates button and switch to set tabindex in an isolated method which can be called outside of disabledChanged. As part of this PR, the auto-assignment of disabled=false has been removed to improve lifecycle events within DSD scenarios.

Related Issue(s)

  • Fixes #

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 5, 2026

📊 Bundle size report

✅ No changes found

@@ -0,0 +1,7 @@
{
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🕵🏾‍♀️ visual changes to review in the Visual Change Report

vr-tests-web-components/Accordion 1 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-web-components/Accordion. - Dark Mode.normal.chromium_1.png 3154 Changed
vr-tests-web-components/Avatar 1 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-web-components/Avatar. - Dark Mode.normal.chromium_1.png 298 Changed
vr-tests-web-components/MenuList 1 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-web-components/MenuList. - Dark Mode.normal.chromium.png 498 Changed
vr-tests-web-components/TextInput 1 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-web-components/TextInput. - Dark Mode.normal.chromium_1.png 288 Changed

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 5, 2026

Pull request demo site: URL

@chrisdholt chrisdholt closed this Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant