From 52cad9c0b5f3244b2dacd46cad6b390a586c5b1e Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Mon, 14 Oct 2024 17:57:19 +0200 Subject: [PATCH] docs(cdk/tree): fix several live example issues (#29875) Fixes the following issues with the tree live examples: * Both the tree node and the toggle were marked as toggles which meant that clicking anywhere would close the tree. * The toggles weren't centered relative to the text. * A couple of examples had the same name and one had weird punctuation. Fixes #29830. --- ...k-tree-nested-children-accessor-example.css | 4 ++++ ...-tree-nested-children-accessor-example.html | 15 +++++++++------ ...dk-tree-nested-children-accessor-example.ts | 2 +- .../cdk-tree-nested-level-accessor-example.css | 4 ++++ ...cdk-tree-nested-level-accessor-example.html | 18 +++++++++++------- .../cdk-tree-nested-level-accessor-example.ts | 2 +- .../cdk-tree-nested-example.css | 4 ++++ .../cdk-tree-nested-example.html | 15 +++++++++------ 8 files changed, 43 insertions(+), 21 deletions(-) diff --git a/src/components-examples/cdk/tree/cdk-tree-nested-children-accessor/cdk-tree-nested-children-accessor-example.css b/src/components-examples/cdk/tree/cdk-tree-nested-children-accessor/cdk-tree-nested-children-accessor-example.css index 988fa23745aa..b50b05f13a8e 100644 --- a/src/components-examples/cdk/tree/cdk-tree-nested-children-accessor/cdk-tree-nested-children-accessor-example.css +++ b/src/components-examples/cdk/tree/cdk-tree-nested-children-accessor/cdk-tree-nested-children-accessor-example.css @@ -16,3 +16,7 @@ .example-tree-node .example-tree-node { padding-left: 40px; } + +.example-toggle { + vertical-align: middle; +} diff --git a/src/components-examples/cdk/tree/cdk-tree-nested-children-accessor/cdk-tree-nested-children-accessor-example.html b/src/components-examples/cdk/tree/cdk-tree-nested-children-accessor/cdk-tree-nested-children-accessor-example.html index 2cb894916598..fd595e21d27a 100644 --- a/src/components-examples/cdk/tree/cdk-tree-nested-children-accessor/cdk-tree-nested-children-accessor-example.html +++ b/src/components-examples/cdk/tree/cdk-tree-nested-children-accessor/cdk-tree-nested-children-accessor-example.html @@ -8,12 +8,15 @@ -