Skip to content

Commit

Permalink
docs(material/tree): fixed mixed node types
Browse files Browse the repository at this point in the history
Fixes docs that were combining flat and nested tree nodes.
  • Loading branch information
crisbeto committed Nov 12, 2024
1 parent cc53322 commit 1d5a6a2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
* Leaf nodes need to have padding so as to align with other non-leaf nodes
* under the same parent.
*/
.example-tree div[role=group] > .mat-tree-node {
.example-tree div[role=group] > .mat-nested-tree-node {
padding-left: 40px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<!-- This is the tree node template for leaf nodes -->
<!-- There is inline padding applied to this node using styles.
This padding value depends on the mat-icon-button width. -->
<mat-tree-node *matTreeNodeDef="let node">
<mat-nested-tree-node *matTreeNodeDef="let node">
{{node.name}}
</mat-tree-node>
</mat-nested-tree-node>
<!-- This is the tree node template for expandable nodes -->
<mat-nested-tree-node
*matTreeNodeDef="let node; when: hasChild"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
* Leaf nodes need to have padding so as to align with other non-leaf nodes
* under the same parent.
*/
.example-tree div[role=group] > .mat-tree-node {
.example-tree div[role=group] > .mat-nested-tree-node {
padding-left: 40px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<!-- This is the tree node template for leaf nodes -->
<!-- There is inline padding applied to this node using styles.
This padding value depends on the mat-icon-button width. -->
<mat-tree-node *matTreeNodeDef="let node">
<mat-nested-tree-node *matTreeNodeDef="let node">
{{node.name}}
</mat-tree-node>
</mat-nested-tree-node>
<!-- This is the tree node template for expandable nodes -->
<mat-nested-tree-node
*matTreeNodeDef="let node; when: hasChild"
Expand Down

0 comments on commit 1d5a6a2

Please sign in to comment.