fix(check): the overlap finding names the decorative mark, data-layout-ignore (#7365)

This commit is contained in:
Miguel Ángel
2026-11-07 18:05:18 +00:00
committed by GitHub
parent 896a77c307
commit 330be7cd2d
2 changed files with 2 additions and 1 deletions
@@ -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.",
};
}
@@ -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", () => {