fix(ui): prevent full bleed hero overflow
This commit is contained in:
@@ -78,6 +78,13 @@ function openingTags(source: string): string[] {
|
||||
}
|
||||
|
||||
describe("@wrnexus/ui redesign component pack", () => {
|
||||
test("Hero full bleed does not use scrollbar-sensitive viewport units", async () => {
|
||||
const source = await readFile(join(componentsDir, "Hero.wrn"), "utf8");
|
||||
expect(source).not.toContain("width: 100vw");
|
||||
expect(source).not.toContain("width: 100dvw");
|
||||
expect(source).toContain('.wrn-hero[data-full-bleed="true"]');
|
||||
});
|
||||
|
||||
test("contains every replacement and new component", async () => {
|
||||
const files = new Set(await readdir(componentsDir));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user