feat(ui): add in-flow floating navbar
This commit is contained in:
@@ -126,6 +126,18 @@ describe("@wrnexus/ui redesign component pack", () => {
|
||||
expect(source).not.toContain(".wrn-navbar__topbar:not(:empty)");
|
||||
});
|
||||
|
||||
test("Navbar supports in-flow floating and elevated menu panels", async () => {
|
||||
const source = await readFile(join(componentsDir, "Navbar.wrn"), "utf8");
|
||||
const ast = parse(source);
|
||||
const defaults = new Map(ast.props.map((prop) => [prop.name, prop.default]));
|
||||
|
||||
expect(defaults.get("floating")).toBe("false");
|
||||
expect(defaults.get("startFloating")).toBe('"0px"');
|
||||
expect(source).toContain("wrn-navbar--floating");
|
||||
expect(source).toContain("--wrn-navbar-floating-start");
|
||||
expect(source).toContain("z-index: 1100");
|
||||
});
|
||||
|
||||
test("CTASection exposes responsive section spacing", async () => {
|
||||
const source = await readFile(join(componentsDir, "CTASection.wrn"), "utf8");
|
||||
const ast = parse(source);
|
||||
|
||||
Reference in New Issue
Block a user