fix(react-accordion): prevent keyboard focus from entering a collapsing panel#35960
Open
fix(react-accordion): prevent keyboard focus from entering a collapsing panel#35960
Conversation
2 tasks
…t when closed Prevents keyboard focus from moving into a collapsing accordion panel. The inert attribute makes all descendants non-interactive during collapse, while tabIndex=-1 prevents the panel container itself from receiving focus. Fixes: accordion collapse delay allows focus to move into collapsing panel Agent-Logs-Url: https://github.com/microsoft/fluentui/sessions/0690dcdf-78f9-484d-8cfc-12fd084c7ad4 Co-authored-by: dmytrokirpa <1492102+dmytrokirpa@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix accordion collapse delay to prevent keyboard focus issues
fix(react-accordion): prevent keyboard focus from entering a collapsing panel
Apr 7, 2026
Contributor
|
@copilot generate a changefile by running |
Agent-Logs-Url: https://github.com/microsoft/fluentui/sessions/a144f753-aa89-4fe9-ad6f-1af22d669f3d Co-authored-by: dmytrokirpa <1492102+dmytrokirpa@users.noreply.github.com>
Contributor
Author
Done — changefile added in commit |
dmytrokirpa
approved these changes
Apr 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
inertandtabIndex=-1to AccordionPanel root whenstate.openis false to prevent keyboard focus from entering a collapsing panelAccordionPanel.test.tsxwith two new tests covering the open/closed state behavior@fluentui/react-accordion(patch)