mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 07:50:13 +00:00
fix(check): the overlap finding names the decorative mark, data-layout-ignore (#7365)
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user