fix: keep page shells transparent
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@wrnexus/ui",
|
||||
"version": "0.2.59",
|
||||
"version": "0.2.60",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"main": "src/index.ts",
|
||||
|
||||
@@ -81,6 +81,12 @@ test("component-system CSS includes responsive, theme-token, focus, and reduced-
|
||||
expect(css).toContain("--color-red-600: var(--wire-color-danger)");
|
||||
});
|
||||
|
||||
test("page shells leave background ownership to the page", () => {
|
||||
const css = uiCss();
|
||||
const shellRule = css.match(/\.wire-page-shell\s*\{([^}]*)\}/)?.[1] ?? "";
|
||||
expect(shellRule).not.toMatch(/background(?:-color)?\s*:/);
|
||||
});
|
||||
|
||||
test("every bundled UI component compiles", () => {
|
||||
for (const name of uiComponentNames()) {
|
||||
const path = join(uiComponentsDir(), `${name}.wrn`);
|
||||
|
||||
@@ -780,7 +780,6 @@
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
color: var(--wire-color-text);
|
||||
background: var(--wire-color-bg);
|
||||
}
|
||||
.wire-page-shell--marketing,
|
||||
.wire-page-shell--product {
|
||||
|
||||
Reference in New Issue
Block a user