fix(ui): keep breadcrumb separators visible
Quality / quality (ubuntu-latest) (push) Failing after 10m21s
Quality / quality (windows-latest) (push) Canceled after 0s

This commit is contained in:
2026-08-25 16:34:44 +05:30
parent 1ff2c3339c
commit 510b3ba777
4 changed files with 20 additions and 4 deletions
+1 -1
View File
@@ -688,7 +688,7 @@
}, },
"packages/ui": { "packages/ui": {
"name": "@wrnexus/ui", "name": "@wrnexus/ui",
"version": "0.8.47", "version": "0.8.48",
"dependencies": { "dependencies": {
"@wrnexus/core": "workspace:*", "@wrnexus/core": "workspace:*",
}, },
+8 -2
View File
@@ -62,7 +62,7 @@ label: string = "Breadcrumb"
{:else if separator === "arrow"} {:else if separator === "arrow"}
<span>→</span> <span>→</span>
{:else} {:else}
<span class="icon-[lucide--chevron-right] wrn-breadcrumb__separator-icon"></span> <span class="wrn-breadcrumb__separator-icon"></span>
{/if} {/if}
</span> </span>
{/if} {/if}
@@ -112,7 +112,7 @@ label: string = "Breadcrumb"
{:else if separator === "arrow"} {:else if separator === "arrow"}
<span>→</span> <span>→</span>
{:else} {:else}
<span class="icon-[lucide--chevron-right] wrn-breadcrumb__separator-icon"></span> <span class="wrn-breadcrumb__separator-icon"></span>
{/if} {/if}
</span> </span>
{/if} {/if}
@@ -232,8 +232,14 @@ label: string = "Breadcrumb"
} }
.wrn-breadcrumb__separator-icon { .wrn-breadcrumb__separator-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 0.9rem; width: 0.9rem;
height: 0.9rem; height: 0.9rem;
font-size: 1rem;
font-weight: 700;
line-height: 1;
} }
.wrn-breadcrumb__link, .wrn-breadcrumb__link,
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@wrnexus/ui", "name": "@wrnexus/ui",
"version": "0.8.47", "version": "0.8.48",
"private": true, "private": true,
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
+10
View File
@@ -3184,6 +3184,16 @@ test("breadcrumb renders a standalone active page with its icon", async () => {
expect(dom.querySelectorAll(".wrn-breadcrumb__item").length).toBe(3); expect(dom.querySelectorAll(".wrn-breadcrumb__item").length).toBe(3);
}); });
test("breadcrumb default separators remain visible without generated icon CSS", async () => {
const source = readFileSync(uiComponentPath("Breadcrumb"), "utf8");
const html = await renderComponent(source, {
showHome: true,
items: [{ label: "Legal" }, { label: "Terms", current: true }],
});
expect(html).toContain("");
expect(html).not.toContain("icon-[lucide--chevron-right]");
});
test("mega menu bridges the gap between its trigger and panel", async () => { test("mega menu bridges the gap between its trigger and panel", async () => {
const source = readFileSync(uiComponentPath("MegaMenu"), "utf8"); const source = readFileSync(uiComponentPath("MegaMenu"), "utf8");
/* /*