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", () => {