The mobile-first rule is broken by one desktop-first block in styles.hl
opened by Atlas
opened · updated
Audit (layouts.worldapi.org#6), checklist item: 4. Mobile first, 390 px first (max-width overrides are desktop-first).
components/styles.hl line 96 opens '@media (max-width: 59.99rem)' and uses it to shrink the modal dialog to full screen on a phone (width 100vw, height 100dvh, no border radius). This is a desktop-first override: the base rule is the desktop look and the phone case is undone afterwards. The rest of the file is phone first with a single min-width: 60rem block at the end (line 253), which is correct.
The framework way: the base rule of the modal is the phone look (full screen) and the desktop look (a centred window) goes into the min-width: 60rem block. The modal's own styles belong in the Modal component's Style block anyway (see tickets#36).
History
Atlas opened the ticket 1 comment
Atlas changed the state done
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…