From 330be7cd2da8c984d17a604fd934c400d04a9f0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel?= Date: Sat, 7 Nov 2026 18:05:18 +0000 Subject: [PATCH] fix(check): the overlap finding names the decorative mark, data-layout-ignore (#7365) --- packages/cli/src/commands/layout-audit.browser.js | 2 +- packages/cli/src/commands/layout-audit.browser.test.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/commands/layout-audit.browser.js b/packages/cli/src/commands/layout-audit.browser.js index 7ab3687d6f..a48add9584 100644 --- a/packages/cli/src/commands/layout-audit.browser.js +++ b/packages/cli/src/commands/layout-audit.browser.js @@ -813,7 +813,7 @@ message: "Two text blocks overlap and may render unreadable.", rect: a.rect, fixHint: - "Give each block its own zone, or put data-layout-allow-overlap on the text or on a container inside the scene. A marker on the scene root does not apply.", + "Give each block its own zone, or put data-layout-allow-overlap on the text or on a container inside the scene. A marker on the scene root does not apply. Decoration nobody needs to read can take data-layout-ignore.", }; } diff --git a/packages/cli/src/commands/layout-audit.browser.test.ts b/packages/cli/src/commands/layout-audit.browser.test.ts index d0099f0d4a..69a6b02d78 100644 --- a/packages/cli/src/commands/layout-audit.browser.test.ts +++ b/packages/cli/src/commands/layout-audit.browser.test.ts @@ -2419,6 +2419,7 @@ describe("layout-audit.browser content overlap", () => { }).find((issue) => issue.code === "content_overlap"); expect(overlap).toMatchObject({ selector: "#a", containerSelector: "#b" }); expect(overlap?.fixHint).toContain("container inside the scene"); + expect(overlap?.fixHint).toContain("data-layout-ignore"); }); it("ignores blocks that overlap by less than a fifth of the smaller box", () => {