Skip to content

[stable5.4] fix(a11y): keep the focus and list structure in the editor - #3875

Merged
Chartman123 merged 3 commits into
stable5.4from
backport/3868/stable5.4
Nov 11, 2026
Merged

Chartman123 merged 3 commits into
stable5.4from
backport/3868/stable5.4

Conversation

@backportbot

@backportbot backportbot Bot commented Nov 11, 2026

Copy link
Copy Markdown

Backport of PR #3868

Adding a question moves the focus to the title of the new question.
Only checkbox and radio questions handed their root element to
useQuestion, so for all other types the focus stayed on the closed
menu and fell back to the page. Every question component now hands
its root element to useQuestion.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
In the editor, the field of the answer "Other" was a list item after the
list of the options, outside of any list. Assistive technologies only
expect list items within a list, so it is a plain element now.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Moving a question up keeps the focus on its "Move question up" button.
Once the question is the first one, that button is disabled, so the
focus fell back to the page and the next Tab started at the top. The
same happened with "Move question down" for the last question.

Move the focus to the other move button of the question in that case.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
@backportbot backportbot Bot added bug Something isn't working 3. to review Waiting for reviews labels Nov 11, 2026
@Chartman123
Chartman123 disabled auto-merge November 11, 2026 10:13
@Chartman123
Chartman123 merged commit de1f215 into stable5.4 Nov 11, 2026
42 checks passed
@Chartman123
Chartman123 deleted the backport/3868/stable5.4 branch November 11, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants