Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict between the tree and treeitem roles regarding Allowed Accessibility Child Roles and Required Accessibility Parent Roles. #2315

Closed
giacomo-petri opened this issue Aug 19, 2024 · 2 comments
Labels

Comments

@giacomo-petri
Copy link
Contributor

The treeitem role has specific requirements for its accessibility parent roles:

A treeitem element can contain a sub-level group of elements that can be expanded or collapsed. An expandable collection of treeitem elements are enclosed in an element with the group role.

Authors MUST ensure elements with role treeitem are accessibility children of an element with role tree or an element with role group that is the accessibility child of an element with role treeitem.

On the other hand, the tree role allows certain accessibility child roles:

When these rules are combined, a conflict arises. While the tree role can have a group as a child, the treeitem role only permits a group as its parent if that group is itself a child of another treeitem. This creates a contradiction, as the tree allows for a group child, but the treeitem role does not allow a group as its parent unless it is nested under another treeitem.

Therefore, the tree role should only allow treeitem as its accessibility child role.

@giacomo-petri giacomo-petri changed the title Conflict between the tree and treeitem roles regarding Required Accessibility Parent Roles and Allowed Accessibility Child Roles. Conflict between the tree and treeitem roles regarding Allowed Accessibility Child Roles and Required Accessibility Parent Roles. Aug 19, 2024
@pkra
Copy link
Member

pkra commented Aug 19, 2024

Is this a duplicate of #2094 / #2014 ?

@giacomo-petri
Copy link
Contributor Author

@pkra thanks
Closing as dup

@giacomo-petri giacomo-petri closed this as not planned Won't fix, can't repro, duplicate, stale Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants