You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(website): make the airport band readable on a tablet and guard what it claims
Final-review pass over the compatibility airport diagram.
The plate was unreadable between 768px and ~1000px. `.ap-svg` is
`width: 100%`, so the 1000-unit drawing scales with its container: at a
768px viewport that container is ~707px, the plate renders at 0.71, and
callsigns land at 6.0px with gate ids at 5.3px. The HTML gate list now
takes over at `max-width: 1023px` rather than 767px, so tablets get the
readable list instead of a shrunken chart — not a sideways scroll, which
the spec rules out for this band. A new e2e case at 900px proves it, and
fails against the old breakpoint.
Three guards that could not see their own subject:
- The band's whole accessibility rests on `.airport-stack` being hidden
visually (clip-path) and never with `display: none` — the plate is
aria-hidden, so the five provider names and the "never talks to them"
claim exist nowhere else in the DOM. Nothing asserted it. A style
contract now pins the desktop rule, positively and negatively.
- The "never talks to them" test read `container.textContent` unscoped,
so the aria-hidden plate satisfied it. Deleting the stack's off-airport
label left all ten tests green while the claim vanished from the phone
form. It is scoped to `.airport-stack` now, like its neighbour.
- The off-airport row itself was uncounted, and the e2e's margin check
walks a NodeList that passes when empty. Deleting the whole provider
row left both suites green. The counts sit beside the other
`toHaveCount` assertions.
`MS AGENT FWK` is an abbreviation a 38px stand forces, but it was also
what the phone list and every screen reader got. `Gate.long` carries the
whole name; the plate keeps the short one.
Also: the chart id lost a double space, the spec doc's field extents and
B6 size now match the code, `TPL` is recorded as a real assigned IATA
code the way `AL-0059` was, and four plate fills stop hardcoding
`--color-ink` / `--color-signal` as literals. Every rendered colour is
unchanged — verified in the browser.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments