From 0e41e7c2e40b6570c95afcb743eff85a101f2ada Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Fri, 5 Jun 2026 04:42:24 -0400 Subject: [PATCH] fix(theme): resolve nav/login kit issues + bump 0.2.1 -> 0.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Addresses ZB.MOM.WW.Theme/themeissues.md: - #1 NavRailSection renders aria-expanded (SSR from Expanded), kept in sync by nav-state.js on restore + toggle. - #2 nav-state.js auto-expands the section holding a.rail-link.active (transient via data-zbnav-transient — does not overwrite saved state). - #3 nav-state.js re-applies on Blazor 'enhancedload' (idempotent via per-element init guard). - #5 LoginCard wraps product in span.login-product + optional Heading override param. - #4 documented as an accepted client-only-persistence tradeoff (no code change). +4 bUnit tests (48 total, all green). --- ZB.MOM.WW.Theme/Directory.Build.props | 2 +- .../Components/LoginCard.razor | 26 +- .../Components/NavRailSection.razor | 5 +- .../ZB.MOM.WW.Theme/wwwroot/js/nav-state.js | 66 ++++- .../ZB.MOM.WW.Theme.Tests/LoginCardTests.cs | 24 ++ .../ZB.MOM.WW.Theme.Tests/NavRailTests.cs | 21 ++ ZB.MOM.WW.Theme/themeissues.md | 248 ++++++++++++++++++ 7 files changed, 376 insertions(+), 16 deletions(-) create mode 100644 ZB.MOM.WW.Theme/themeissues.md diff --git a/ZB.MOM.WW.Theme/Directory.Build.props b/ZB.MOM.WW.Theme/Directory.Build.props index 94422ba..4212faa 100644 --- a/ZB.MOM.WW.Theme/Directory.Build.props +++ b/ZB.MOM.WW.Theme/Directory.Build.props @@ -4,7 +4,7 @@ enable enable latest - 0.2.1 + 0.3.0 true diff --git a/ZB.MOM.WW.Theme/src/ZB.MOM.WW.Theme/Components/LoginCard.razor b/ZB.MOM.WW.Theme/src/ZB.MOM.WW.Theme/Components/LoginCard.razor index d15fc15..3589db7 100644 --- a/ZB.MOM.WW.Theme/src/ZB.MOM.WW.Theme/Components/LoginCard.razor +++ b/ZB.MOM.WW.Theme/src/ZB.MOM.WW.Theme/Components/LoginCard.razor @@ -8,7 +8,17 @@