-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
docs(tree): add cdk tree examples to material-examples #10426
Conversation
.example-tree ul, | ||
.example-tree li { | ||
-webkit-margin-before: 0; | ||
-webkit-margin-after: 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these prefixed styles necessary?
@@ -0,0 +1,9 @@ | |||
<cdk-tree [dataSource]="dataSource" [treeControl]="treeControl"> | |||
<cdk-tree-node *cdkTreeNodeDef="let node" cdkTreeNodePadding class="demo-tree-node"> | |||
<a [attr.aria-label]="'toggle ' + node.filename" cdkTreeNodeToggle class="demo-tree-toggle"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anchor elements should only be used for navigation (should always have an href
). For actions, you should use a styled <button>
.
* Build the file structure tree. The `value` is the Json object, or a sub-tree of a Json object. | ||
* The return value is the list of `FileNode`. | ||
*/ | ||
buildFileTree(value: any, level: number) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the return type on this be more specific?
@jelbourn Addressed comments and also updated the material examples. |
4559d0a
to
e3039b0
Compare
e3039b0
to
d2359ad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
No description provided.