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
The role=list should be on the container_ which is the parent of role=listitem children. Currently the role is on the element itself and TalkBack is not announcing items as list items. Alternative approach is using aria-owns but that's not worth it.
We should add some text to the example that ensures the author we are using proper aria attributes to make these a list.
If we really like to allow folks to use 'li' as children, then amp-list needs to become smarter and not create the container until it has a child and can inspect the child to see if it is a li or not and based on that either create a div or an ul
The text was updated successfully, but these errors were encountered:
The
role=list
should be on thecontainer_
which is the parent ofrole=listitem
children. Currently the role is on the element itself and TalkBack is not announcing items as list items. Alternative approach is usingaria-owns
but that's not worth it.Also we should fix the examples on https://ampbyexample.com/components/amp-list/ they are invalid HTML and there is no need for the wrapper UL and LI children.
They should just be
We should add some text to the example that ensures the author we are using proper aria attributes to make these a list.
If we really like to allow folks to use 'li' as children, then
amp-list
needs to become smarter and not create the container until it has a child and can inspect the child to see if it is ali
or not and based on that either create adiv
or anul
The text was updated successfully, but these errors were encountered: