-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/engine
#43159Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-webWeb applications specificallyWeb applications specifically
Description
When the framework merges Checkbox semantics with Text semantics into a single node, the LabelAndValue role manager can take precedence and end up assigning role="text" to the HTML DOM element, which confuses screen readers.
Sample widget structure that leads to this situation:
Widget build(BuildContext context) {
return ListView(
children: <Widget>[
Row(
children: [
Checkbox(
autofocus: true,
value: _value,
onChanged: (value) {
setState(() {
_value = value!;
});
},
),
const Text('this is a label'),
],
),
],
);
}
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-webWeb applications specificallyWeb applications specifically