Repository navigation
Conversation
A white photo the shape of the screen lies under Close, Previous, Next and the counter. The contrast case runs for a gallery and a single photo, each with and without zoom, in every shipped theme.
Close, Previous, Next and the counter sit on Lightbox's translucent backing with or without zoom, and their icons use the on-dark colour. The header renders one way: the zoom-only wrapper, icon colour and counter backing branches are gone.
AR9 states the controls' backing with or without zoom, in a gallery and for a single photo. DEC-5 records the owner direction and the rejected zoom-only backing.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec 478a8da |
PR Analysis Report
Generated by PR Enrichment workflow | View current CI run |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet. The pull request is still a draft from a fork, so once it is marked ready, a maintainer adds the ci:run label so CI runs.
The AR9 rewrite and DEC-5 carry an engineering owner's /approve-spec for this head. The new contrast test fails on the base in 13 of 28 cases (1.0 to 1.14:1) and passes on the head in all 28.
Optional, non-blocking:
- Trim the comment at
Lightbox.tsx:1281to its reason (see the inline note). - Name the old look and the WCAG 2.2 1.4.3 and 1.4.11 target in the changeset.
| // A control of the viewer, on Lightbox's own backing, which takes the | ||
| // control's place. Its icon keeps the on-dark colour, so a theme's restyling | ||
| // of the button can't remove its contrast. |
There was a problem hiding this comment.
Non-blocking (INV29): the first sentence restates the <span> below it. Keeping only the reason reads better:
// The icon keeps the on-dark colour. A theme that restyles the button then
// can't remove its contrast.| '@astryxdesign/core': patch | ||
| --- | ||
|
|
||
| [fix] Lightbox's Close, Previous, Next and counter always sit on its translucent dark backing, with or without `hasZoom`, so they keep their contrast over any photo and look the same in every viewer. |
There was a problem hiding this comment.
Non-blocking: spec:AST-017 FR53 asks an accessibility fix's changeset to name the old and new behavior and the target it serves. Something like "Without hasZoom they used to sit bare on the photo; they now keep WCAG 2.2 1.4.11 (3:1) and 1.4.3 (4.5:1) contrast over any photo" makes the release note complete.
Lightbox's Close, Previous, Next and counter always sit on its translucent dark backing, in a gallery and for a single photo, with or without
hasZoom.User impact
Without
hasZoom, the controls sat straight on the backdrop or the photo: on a phone, a white chevron on a light photo. Now every viewer shows them one way, on Lightbox's backing with on-dark icons and text.Visual authority
DDrow reused or amended.Design decisionstable by a team design owner.docs/design/.The design owner asked for one look in every viewer. AR9 now states it, and a new DEC-5 records the decision. The record waits on the spec owner's
/approve-spec.Before and after
Each pair is one story, photo and state, before (main db3e833) and after (478a8da). Playwright drove Google Chrome 157.0.8103.50 (stable, headless) at 1024×768 and on a 375×667 touch phone, default theme, real photos. They match an earlier bundled-Chromium 149 set byte for byte.
With zoom nothing changes: in that Chrome, 12 states of "Gallery with zoom", "With zoom" and "Zoom with caption" match main byte for byte, desktop and phone, light and dark.
State matrix
Scope
Components: Lightbox
The spec owners asked for two done criteria:
hasZoomno longer appears in the header code. Its remaining uses are the prop, the click-through rule and the zoom target. One contrast case covers every viewer.Lightbox.tsxis −17 (+13/−30), the zoom spec +2 (+119/−117) andLightbox.spec.md+12 (+21/−9), so −3 in all. The changeset adds 7 lines outside Lightbox's files.Writing rubric results
component:ResizableFR8.Testing
tscis clean, strict ESLint has no warnings on the changed files, andpnpm check:knowledgepasses. The Lightbox, IconButton and Button unit files pass 312/312. In CI's profile (a 4-CPU container, 1 worker), the Lightbox interaction specs pass 124 in Chromium (4 skips) and 119 in WebKit (9 skips). The Lightbox a11y specs pass 38 in Chromium, main's audit spec included, and 27 in WebKit (2 skips).It touches
Lightbox.tsx, so it merges after #9810 and #10284, with a merge of main once they land. It also rewrites AR9 and its row, which #10826 edits, so it merges after #10826 and keeps its caption sentence.Public and internal API delta
None. No export, prop, type, default, hook, module or data attribute changes, and no new source file.
hasZoomkeeps its meaning and default. The change stays insideLightbox.tsx's private styles and its privatecontrol()helper.