Skip to content

fix(multiple-choice/ebsr): correct keyboard navigation between EBSR parts using native radiogroup semantics PIE-174#3017

Merged
CarlaCostea merged 4 commits into
developfrom
fix/PIE-174
May 15, 2026
Merged

fix(multiple-choice/ebsr): correct keyboard navigation between EBSR parts using native radiogroup semantics PIE-174#3017
CarlaCostea merged 4 commits into
developfrom
fix/PIE-174

Conversation

@CarlaCostea
Copy link
Copy Markdown
Contributor

https://illuminate.atlassian.net/browse/PIE-174

The radio name attribute was derived from the visible part label,
so items with partLabels: false (e.g. when authors write their own
"Part A" / "Part B" into the prompt) collapsed both parts into one
big radio group: arrow keys crossed parts and Tab got trapped on the
selected radio. To work around that, each fieldset had tabIndex={0}
plus a handleGroupFocus handler that redirected focus via
firstInputRef / autoFocusRef — but after the MUI v7 migration the
autoFocusRef stopped reaching the underlying input (the wrappers
rebuilt slotProps from a never-passed inputRef prop), causing focus
to land on the empty fieldset and forcing the user to press Tab and
Shift+Tab twice to traverse parts.

partLabels now controls only the visible heading and no longer
affects keyboard or screen-reader grouping.

…p EBSR parts in separate radio groups regardless of partLabels setting PIE-174
…on the first radio in a group, use a unique random radio group name per instance so EBSR parts stay independent regardless of partLabels PIE-174
@CarlaCostea CarlaCostea merged commit f9f875e into develop May 15, 2026
5 of 6 checks passed
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