You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Flutter Web: Landmark roles are required to identify regions of a page (Accessibility) #162138
WAI-ARIA landmark roles provide a powerful way to identify the organization and structure of a web page. By classifying and labelling sections of a page, they enable structural information that is conveyed visually through layout to be represented programmatically. Screen readers exploit landmark roles to provide keyboard navigation to important sections of a page. Landmark regions can also be used as targets for "skip links" and by browser extensions to enhanced keyboard navigation.
Proposal
Add the following landmark roles to the the available semantics roles in existing widget libraries:
banner (when in context of the body element)
complementary
contentinfo (when in context of the body element)
main
navigation
region (when it has an accessible name using aria-labelledby or aria-label)
changed the title [-]Flutter Web: Landmark roles are required to identify regions of a page[/-][+]Flutter Web: Landmark roles are required to identify regions of a page (Accessibility)[/+]on Jan 24, 2025
How can I use banner? I tried to use Semantics(header: true, headingLevel: null,child: child)
with different values for "header", "headingLevel" and "child" but in my semantic tree, I only achieve to create "generic" or "heading" nodes, never "banner".
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
[-]Flutter Web: Landmark roles are required to identify regions of a page[/-][+]Flutter Web: Landmark roles are required to identify regions of a page (Accessibility)[/+]chunhtai commentedon Feb 5, 2025
We already covered banner.
atomancok commentedon Apr 3, 2025
How can I use banner? I tried to use
Semantics(header: true, headingLevel: null,child: child)with different values for "header", "headingLevel" and "child" but in my semantic tree, I only achieve to create "generic" or "heading" nodes, never "banner".
Add landmark roles (#168931)
Squashed commit of the following:
github-actions commentedon Jun 23, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.Add landmark roles (#168931)