From 44384d51c9d2b2017603be94a54329b2df6cd8b3 Mon Sep 17 00:00:00 2001 From: Bryan Cunningham Date: Wed, 10 Dec 2025 09:28:36 -0500 Subject: [PATCH] fix padding when nested. remove ng style and class (#17874) * fix padding when nested. remove ng style and class * add expanded group to story to cover bug fix * use class binding for async classes * remove unnecessary x padding to improve truncation * simplify padding logic * fix padding end in closed state * add back some padding in tree view * add back padding to avoid weird spacing scenarios --- .../src/navigation/nav-group.stories.ts | 5 ++++ .../src/navigation/nav-item.component.html | 27 ++++++++----------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/libs/components/src/navigation/nav-group.stories.ts b/libs/components/src/navigation/nav-group.stories.ts index d5c381ac3e3..e3033e4b40a 100644 --- a/libs/components/src/navigation/nav-group.stories.ts +++ b/libs/components/src/navigation/nav-group.stories.ts @@ -84,6 +84,11 @@ export const Default: StoryObj = { + + + + + `, }), diff --git a/libs/components/src/navigation/nav-item.component.html b/libs/components/src/navigation/nav-item.component.html index 1de8a9bd167..8a59d474d94 100644 --- a/libs/components/src/navigation/nav-item.component.html +++ b/libs/components/src/navigation/nav-item.component.html @@ -2,16 +2,12 @@ @let open = sideNavService.open$ | async; @if (open || icon()) {
@if (open) { @@ -26,13 +22,12 @@
@if (icon()) {