Repository navigation
Conversation
The tree examples that don't use a `treeControl` didn't set `isExpandable` on their expandable nodes. Without it the nodes have no `aria-expanded` and the arrow keys don't expand or collapse them, because the key manager only expands nodes that are marked as expandable. Relates to angular#32465.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tree.mdsaysisExpandablemust be set on expandable nodes, but six Material examples(nested-overview, nested-child-accessor-overview, flat-overview, flat-child-accessor-overview,
tree-dynamic, tree-loadmore) didn't set it. Clicking the toggle still worked, but the nodes had
no
aria-expandedand ArrowRight/ArrowLeft did nothing. The CDK examples and the remainingMaterial examples already set it or use a
treeControl.Verified in Chromium against @angular/material 22.3.2: ArrowRight expands and then moves to the
first child, ArrowLeft moves to the parent and then collapses,
aria-expandedis present. Thisincludes the dynamic and load-more examples (children loaded after expansion; the "load more"
node is not marked expandable). Not tested in Firefox.
Relates to #32465 (item 2). The toggle button being in the tab order is fixed separately in
#34228.