fix(ui): prevent navigation surface overflow
Quality / quality (windows-latest) (push) Waiting to run
Quality / quality (ubuntu-latest) (push) Failing after 9m53s

This commit is contained in:
2026-08-24 23:08:00 +05:30
parent 45309b3f72
commit ceb865f4f1
5 changed files with 12 additions and 6 deletions
+3 -3
View File
@@ -162,9 +162,9 @@ badge: string = ""
position: relative;
z-index: 40;
display: block;
width: 100vw;
max-width: 100vw;
margin-inline: calc(50% - 50vw);
width: 100%;
max-width: 100%;
margin-inline: 0;
color: var(--wrn-color-text);
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@wrnexus/ui",
"version": "0.8.38",
"version": "0.8.39",
"private": true,
"type": "module",
"main": "src/index.ts",
+6
View File
@@ -2941,6 +2941,12 @@ test("mega menu renders column groups in an anchored panel", async () => {
expect(source).toContain("box-sizing: border-box");
});
test("announcement full-width surface does not create viewport scrollbar overflow", () => {
const source = readFileSync(uiComponentPath("AnnouncementBar"), "utf8");
expect(source).not.toContain("width: 100vw");
expect(source).not.toContain("calc(50% - 50vw)");
});
test("mega menu columns take roving focus and survive an empty column list", async () => {
const source = readFileSync(uiComponentPath("MegaMenu"), "utf8");
const html = await renderComponent(source, { label: "Empty", columns: [] });