Uh oh!
There was an error while loading. Please reload this page.
Adds list and list item roles - #164809
Conversation
| /// | ||
| /// Uses aria list role to convey this semantic information to the element. | ||
| /// | ||
| /// Screen-readers takes advantage of "aria-label" to describe the visual. |
| bool focusAsRouteDefault() => focusable?.focusAsRouteDefault() ?? false; | ||
| } | ||
| /// Indicates a item in a list. |
| /// | ||
| /// Uses aria listitem role to convey this semantic information to the element. | ||
| /// | ||
| /// Screen-readers takes advantage of "aria-label" to describe the visual. |
| /// A cell in a [table] contains header information for a column. | ||
| columnHeader, | ||
| /// A container that display its children in a list layout. |
There was a problem hiding this comment.
nit: s/display/displays/
Instead of saying "list layout" (how is a list laid out? can it be horizontal?), consider saying "...whose children are logically a list of items". We should also probably explain that it is expected that each child node has the role [listItem].
| /// A container that display its children in a list layout. | ||
| list, | ||
| /// An item in a [list]. |
There was a problem hiding this comment.
Does listItem need to be a direct child of a list? We have a similar situation/problem with tables.
There was a problem hiding this comment.
yes, it has the same problem, so I think @hannah-hyj 's pr will help fix this issue
There was a problem hiding this comment.
Cool. Do we want to document and/or enforce the relationship in the node structure somehow?
There was a problem hiding this comment.
for semanticsnode, yes we have check in framework side. i.e. _semanticsListItem
or do you meant in dom structure?
There was a problem hiding this comment.
A check in the framework is probably good enough, and it's probably easier to maintain there.
Uh oh!
There was an error while loading. Please reload this page.
autosubmit label was removed for flutter/flutter/164809, because - The status or check suite Linux_android_emu android_engine_vulkan_tests has failed. Please fix the issues identified (or deflake) before re-applying this label. |
autosubmit label was removed for flutter/flutter/164809, because Pull request flutter/flutter/164809 is not in a mergeable state. |
<!-- Thanks for filing a pull request! Reviewers are typically assigned within a week of filing a request. To learn more about code review, see our documentation on Tree Hygiene: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md --> fixesflutter#162121 ## Pre-launch Checklist - [ ] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [ ] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [ ] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [ ] I signed the [CLA]. - [ ] I listed at least one issue that this PR fixes in the description above. - [ ] I updated/added relevant documentation (doc comments with `///`). - [ ] I added new tests to check the change I am making, or this PR is [test-exempt]. - [ ] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [ ] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview [Tree Hygiene]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md [test-exempt]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests [Flutter Style Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md [Features we expect every widget to implement]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md [Data Driven Fixes]: https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md
fixes#162121
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.