fix(theme): correct sticky rail selector, harden bool attrs/tests, doc LoginCard security contract

- layout.css: fix @media sticky selector from #sidebar-collapse → #theme-rail (Fix 1)
- NavRailTests/CommonControlsTests: add TDD tests verifying Blazor omits false bool attrs (Fix 2)
- TechButton: rename Extra → AdditionalAttributes, move @attributes splat first (Fix 3)
- LoginCard: add security contract XML/comment docs on ReturnUrl and ChildContent (Fix 4)
- build/pack.sh, push.sh: fix comment from ZB.MOM.WW.Auth → ZB.MOM.WW.Theme (Fix 5)
This commit is contained in:
Joseph Doherty
2026-06-01 05:03:17 -04:00
parent cac2f659e4
commit fe774f8ee4
7 changed files with 41 additions and 6 deletions
@@ -27,6 +27,13 @@ public class CommonControlsTests : TestContext
Assert.Equal("save", btn.GetAttribute("id"));
}
[Fact]
public void TechButton_not_busy_is_not_disabled()
{
var cut = RenderComponent<TechButton>(p => p.Add(x => x.Busy, false).AddChildContent("Go"));
Assert.False(cut.Find("button").HasAttribute("disabled"));
}
[Fact]
public void TechCard_renders_title_and_body()
{