Skip to content

[stable5.4] fix(a11y): screen reader fixes for the linear scale question - #3994

Merged
Chartman123 merged 5 commits into
stable5.4from
backport/3989/stable5.4
Nov 22, 2026
Merged

Chartman123 merged 5 commits into
stable5.4from
backport/3989/stable5.4

Conversation

@backportbot

@backportbot backportbot Bot commented Nov 22, 2026

Copy link
Copy Markdown

Backport of PR #3989

A required linear scale left empty shows "You must answer this
question" and marks its radio buttons invalid. Picking a value did not
clear either until the next submit attempt, so screen readers went on
announcing the picked value as invalid.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
In the editor the radio buttons of a linear scale referenced the
question title as their group name and the label of the lowest value as
the description of the first one, but both are only rendered on the
submit page, so the references pointed nowhere. On the submit page the
description of the first radio button pointed nowhere as well when the
label of the lowest value is empty. Both are now set only where the
element exists.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
The first option of a linear scale is described by the label of the
lowest value, but nothing referenced the label of the highest value:
the hidden legend that names both is overridden by the question title.
Screen reader users moving through the options heard what the lowest
value means, but never what the highest one means, which on a 0 to 10
scale is what tells them the direction. The last option is now
described by the label of the highest value where it is shown.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
The hidden legend of a linear scale names its lowest and highest
label. The translation function escaped them for HTML, but the legend
is plain text, so a label with an apostrophe or an ampersand reached
screen readers as "Don&#39;t agree" or "&amp;". The legend now takes
the labels as written, like the other texts that hold user input.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
The radio buttons of a linear scale have no label text of their own,
so the component gave them an aria-labelledby pointing to a label that
is never rendered. Browsers fell back to the number next to each
button, but the reference itself was broken. The options are now named
by their value directly.

Assisted-by: ClaudeCode: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 feature: ❓ question types a11y related to accessibility AI assisted labels Nov 22, 2026
@Chartman123
Chartman123 merged commit 730f2ab into stable5.4 Nov 22, 2026
42 checks passed
@Chartman123
Chartman123 deleted the backport/3989/stable5.4 branch November 22, 2026 22:39
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 a11y related to accessibility AI assisted bug Something isn't working feature: ❓ question types

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants