-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Open
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)c: regressionIt was better in the past than it is nowIt was better in the past than it is nowd: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/platform-androidAndroid applications specificallyAndroid applications specificallyteam-accessibilityOwned by Framework Accessibility team (i.e. responsible for accessibility code in flutter/flutter)Owned by Framework Accessibility team (i.e. responsible for accessibility code in flutter/flutter)triaged-accessibilityTriaged by Framework Accessibility teamTriaged by Framework Accessibility team
Description
Steps to reproduce
- Create a text view, marked as header:
Semantics(
header: true,
child: Text('Descriptive header')
);- Install on Android device
- Navigate to the text view using TalkBack
This commit: 59d8010 has changed the logic for setting the isHeading property.
result.setHeading(semanticsNode.hasFlag(Flag.IS_HEADER)); was replaced by result.setHeading(semanticsNode.headingLevel > 0); without a fallback.
Expected behavior would be to set isHeading to true if Flag.IS_HEADER OR headingLevel > 0.
Expected results
TalkBack should announce the text view as header.
Actual results
TalkBack does not announce is header.
Code sample
Semantics(
header: true,
child: Text('Descriptive header')
);Screenshots or Video
The isHeading property is false in the accessibility tree.
Logs
N/A
Flutter Doctor output
N/A
arctouch-danielishara and arctouch-benogilvie
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)c: regressionIt was better in the past than it is nowIt was better in the past than it is nowd: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/platform-androidAndroid applications specificallyAndroid applications specificallyteam-accessibilityOwned by Framework Accessibility team (i.e. responsible for accessibility code in flutter/flutter)Owned by Framework Accessibility team (i.e. responsible for accessibility code in flutter/flutter)triaged-accessibilityTriaged by Framework Accessibility teamTriaged by Framework Accessibility team