Skip to content

Commit 34b8910

Browse files
committed
docs(material/tree): fixed mixed node types
Fixes docs that were combining flat and nested tree nodes. (cherry picked from commit 1d5a6a2)
1 parent f6066c2 commit 34b8910

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/components-examples/material/tree/tree-nested-child-accessor-overview/tree-nested-child-accessor-overview-example.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
* Leaf nodes need to have padding so as to align with other non-leaf nodes
2222
* under the same parent.
2323
*/
24-
.example-tree div[role=group] > .mat-tree-node {
24+
.example-tree div[role=group] > .mat-nested-tree-node {
2525
padding-left: 40px;
2626
}

src/components-examples/material/tree/tree-nested-child-accessor-overview/tree-nested-child-accessor-overview-example.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<!-- This is the tree node template for leaf nodes -->
33
<!-- There is inline padding applied to this node using styles.
44
This padding value depends on the mat-icon-button width. -->
5-
<mat-tree-node *matTreeNodeDef="let node">
5+
<mat-nested-tree-node *matTreeNodeDef="let node">
66
{{node.name}}
7-
</mat-tree-node>
7+
</mat-nested-tree-node>
88
<!-- This is the tree node template for expandable nodes -->
99
<mat-nested-tree-node
1010
*matTreeNodeDef="let node; when: hasChild"

src/components-examples/material/tree/tree-nested-overview/tree-nested-overview-example.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
* Leaf nodes need to have padding so as to align with other non-leaf nodes
2222
* under the same parent.
2323
*/
24-
.example-tree div[role=group] > .mat-tree-node {
24+
.example-tree div[role=group] > .mat-nested-tree-node {
2525
padding-left: 40px;
2626
}

src/components-examples/material/tree/tree-nested-overview/tree-nested-overview-example.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<!-- This is the tree node template for leaf nodes -->
33
<!-- There is inline padding applied to this node using styles.
44
This padding value depends on the mat-icon-button width. -->
5-
<mat-tree-node *matTreeNodeDef="let node">
5+
<mat-nested-tree-node *matTreeNodeDef="let node">
66
{{node.name}}
7-
</mat-tree-node>
7+
</mat-nested-tree-node>
88
<!-- This is the tree node template for expandable nodes -->
99
<mat-nested-tree-node
1010
*matTreeNodeDef="let node; when: hasChild"

0 commit comments

Comments
 (0)