Runtime / Debugging Rules

Accessibility and screen sizes

Every change to how the site looks is checked with the accessibility skill (.claude/skills/accessibility): it says how to run the audit (scripts/a11y-audit), what the site already does and why, and which findings are known brand decisions. The rules match the KONTEKST apps; the brand comes first (fjeldmann-design).

Laptops at 125 % and 150 % zoom are always checked, in the audit and in the screenshot matrix: it is the zoom many laptops run at (Windows’ display scaling, or Ctrl +), so 1280 × 800 and 1366 × 768 lay out at only 1024 × 640 and 1093 × 614 CSS px at 125 %, and at 853 × 533 and 911 × 512 at 150 %.

Pull Requests

Every PR that changes how the site looks posts screenshots in its description, as in the KONTEKST app: each changed page and state, on every device size and zoom level below, as a table (one row per page or state, one column per size) plus a PDF with every screenshot on its own page, to step through with the arrow keys. scripts/pr-screenshots captures them (capture.mjs) and writes both (gallery.mjs); see its README. Look at every screenshot and fix whatever overflows, overlaps, clips or scrolls sideways before posting.

Device Viewport (CSS px) Zoom levels
Mobile 390 × 844 (and 360 × 640 for small phones) 100 %, 200 %
Tablet 820 × 1180 100 %
Laptop 1366 × 768 (and 1280 × 800 at 125 % and 150 %) 100 %, 125 %, 150 %, 200 %, 400 %
Desktop 1920 × 1080 100 %

Push the images to a separate pr-assets/<branch> orphan branch rather than the PR branch, link them with ?raw=true (the generated markdown does both), and say in the PR that the branch can be deleted after merge. Put the audit result (before and after) in the PR too.

Skriv til os

Skriv til os, så vender vi tilbage hurtigst muligt.

contact@fjeldmann.dk

Din besked leveres via FormSubmit, som videresender den til vores indbakke. Sådan håndterer vi dine oplysninger →

Kontakt os

Skriv til os, så vender vi tilbage hurtigst muligt.

Skal udfyldes. Din besked leveres via FormSubmit, som videresender den til vores indbakke. Sådan håndterer vi dine oplysninger