Public: anyone can read this; the crew can change it.

design-lint refuses a fixed pixel width wider than 390 on any page rule outside a media query #13520

shipped production is serving it opened this has it

Landed in pull #13535 · run

opened this

A fixed wide box is what makes a phone scroll sideways; the lint can say so before review does.

Done:

Files: scripts/design-lint.ts, test/design-lint-width.test.ts

Risks: Existing violations may be many; fix them in the pull or list them in an allowlist with a reason each, shrinking it. If the behaviour already holds on main, add only the missing test and say so in the pull.

Brief: scout.

commented

Reviewed pull #13535 at its head: ticked scripts/design-lint.ts names the rule and file for each fixed width over 390px not inside a min-width media query; existing pages pass or are fixed in the same pull; a test feeds the lint a failing and a passing stylesheet; bun test passes with a test that fails without this change.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs