Skip to content

The design language that makes your AI harness better at design.

JavaScript
3.1 KB
Raw Blame
{
  "stdout": "",
  "stderr": "\n<REPO>/tests/fixtures/antipatterns/cramped-padding-dividers.html\n  [cramped-padding] <li> \"framed\": children flush against border-top/bottom on top (no inset)\n    → Text is too close to the edge of its container. Two shapes: (1) an element with its own text where the space between the rendered text and the border box is too small for the font size, and (2) a wrapper whose children's text lands flush against a visible boundary (border, outline, or non-transparent background) with nothing to inset it. Add at least 8px (ideally 12–16px) of space inside bordered, outlined, or colored containers.\n  [cramped-padding] <div> \"feed\": children flush against border on bottom (no inset)\n    → Text is too close to the edge of its container. Two shapes: (1) an element with its own text where the space between the rendered text and the border box is too small for the font size, and (2) a wrapper whose children's text lands flush against a visible boundary (border, outline, or non-transparent background) with nothing to inset it. Add at least 8px (ideally 12–16px) of space inside bordered, outlined, or colored containers.\n  [cramped-padding] <li>: children flush against border-top on top (no inset)\n    → Text is too close to the edge of its container. Two shapes: (1) an element with its own text where the space between the rendered text and the border box is too small for the font size, and (2) a wrapper whose children's text lands flush against a visible boundary (border, outline, or non-transparent background) with nothing to inset it. Add at least 8px (ideally 12–16px) of space inside bordered, outlined, or colored containers.\n  [cramped-padding] <div> \"feed\": children flush against border on bottom (no inset)\n    → Text is too close to the edge of its container. Two shapes: (1) an element with its own text where the space between the rendered text and the border box is too small for the font size, and (2) a wrapper whose children's text lands flush against a visible boundary (border, outline, or non-transparent background) with nothing to inset it. Add at least 8px (ideally 12–16px) of space inside bordered, outlined, or colored containers.\n  [flat-type-hierarchy] Role sizes: body 16px, h2 18px, h4 20px (largest adjacent step 1.13:1; target 1.25:1)\n    → Dominant heading and body roles are separated by less than 1.25× at every step, leaving the size hierarchy flat. Add at least one stronger size step.\n  [skipped-heading] <h2> \"Should flag\" followed by <h4> \"Florida officer finds a man dead and takes his house\" (missing h3)\n    → Heading levels should not skip (e.g. h1 then h3 with no h2). Screen readers use heading hierarchy for navigation. Skipping levels breaks the document outline.\n  [skipped-heading] <h2> \"Should pass\" followed by <h4> \"Florida officer finds a man dead and takes his house\" (missing h3)\n    → Heading levels should not skip (e.g. h1 then h3 with no h2). Screen readers use heading hierarchy for navigation. Skipping levels breaks the document outline.\n\n7 anti-patterns found.\n",
  "exit": 2,
  "signal": null,
  "files": {}
}