Skip to content

Commit fcf9c27

Browse files
committed
docs(Lightbox): caption notes and records cover a single photo
The translator notes for "more" and "less" described only a gallery's caption, and the record's "Captioned media" state named the old centred group. A single photo now shows its caption in the same band, so both say so. FR1b's exception now names the touch pager, which takes a gallery's edge drag.
1 parent ddb45db commit fcf9c27

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎docs/specs/components/Lightbox/Lightbox.spec.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ FR21). Consumer props and usage remain documented in `Lightbox.doc.mjs`.
140140
| ID | Candidate invariant | Basis | Draft review state |
141141
| ---- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- | --------------------------- |
142142
| FR1 | The viewer contains one active Media item and a Close button; galleries additionally contain Previous and Next buttons plus a Counter, and Caption renders only when supplied. In a gallery with any caption, every page keeps a band two caption lines tall under its Media, with the caption's backing only where the page has a caption. A longer caption's second line ends in a "more" button that opens it in full over the bottom of the Media, on a scrim. The full caption is always the viewer's accessible description. The caption band uses Astryx parts: the caption text is `Text` with the body type, and "more"/"less" is a ghost `Button`, not hand-styled elements. | Current source, docs, and tests | settled |
143-
| FR1b | A single photo and a set of photos present the caption the same way: the same plate, width, text treatment, inline "more", spacing and photo position, and no plate when there is no caption. (Owner direction, Nov 6 2026 (Cindy): "the behavior for single photo is different than multiple for the caption and they really should be consistent".) Exceptions: a single photo has no Previous or Next button, no Counter and no paging, since there is no other item; and a drag past a zoomed single photo's edge rubber-bands and returns (FR6), where a gallery's pager takes it (FR7). | Owner direction, Nov 6 2026 | settled |
143+
| FR1b | A single photo and a set of photos present the caption the same way: the same plate, width, text treatment, inline "more", spacing and photo position, and no plate when there is no caption. (Owner direction, Nov 6 2026 (Cindy): "the behavior for single photo is different than multiple for the caption and they really should be consistent".) Exceptions: a single photo has no Previous or Next button, no Counter and no paging, since there is no other item; and a drag past a zoomed single photo's edge rubber-bands and returns (FR6), where a gallery's touch pager takes it (FR7). | Owner direction, Nov 6 2026 | settled |
144144
| FR2 | Viewer overlay carries the current `lightbox` target. Media, Caption, and Counter carry no Lightbox public target. | Current source and public docs | settled |
145145
| FR3 | Close, Previous, and Next button surfaces use Button's `button` target through IconButton rather than Lightbox-owned button targets. | Current source and target docs | settled |
146146
| FR4 | The open viewer is a focus region through Core's shared focus-region module (`component:Dialog/DEC-2`): Tab from its last control moves focus to its first and Shift+Tab from its first moves focus to its last, so focus never leaves the viewer for the browser's own interface. | `component:Dialog/DEC-2` | settled; implementation gap |
@@ -177,7 +177,7 @@ FR21). Consumer props and usage remain documented in `Lightbox.doc.mjs`.
177177
| Single image | Viewer overlay, Media, and Close button render. | Caption and zoom may be absent or present. |
178178
| Gallery boundary | Both navigation buttons and Counter remain rendered. | Previous or Next is disabled at its boundary. |
179179
| Video | Media renders native video controls without image zoom interaction. | Autoplay follows the existing consumer prop. |
180-
| Captioned media | Caption follows the active Media inside the centered media group. | Caption content remains caller-provided. |
180+
| Captioned media | Caption shows in the band under the active Media's page, for one photo or a gallery. | Caption content remains caller-provided. |
181181
| Zoomed image | A double tap or double-click, `-`, or `0` returns to the fitted size. | The zoom level and pan position. |
182182
| Controls hidden | Controls stay focusable and in the accessibility tree; focus or a key brings them back. | Backdrop shade while hidden. |
183183

‎packages/core/locales/en.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,11 +1589,11 @@
15891589
},
15901590
"@astryx.lightbox.captionMore": {
15911591
"defaultMessage": "more",
1592-
"description": "Visible label of the button after a gallery caption that two lines cut short in a Lightbox. It opens the full caption over the photo. Pairs with `lightbox.captionLess`."
1592+
"description": "Visible label of the button after a Lightbox caption that two lines cut short, for a single photo or a gallery. It opens the full caption over the photo. Pairs with `lightbox.captionLess`."
15931593
},
15941594
"@astryx.lightbox.captionLess": {
15951595
"defaultMessage": "less",
1596-
"description": "Visible label of the same button while a Lightbox gallery's full caption is open over the photo. It closes the full caption. Pairs with `lightbox.captionMore`."
1596+
"description": "Visible label of the same button while a Lightbox caption is open in full over the photo. It closes the full caption. Pairs with `lightbox.captionMore`."
15971597
},
15981598
"@astryx.metadataList.showMore": {
15991599
"defaultMessage": "Show more",

0 commit comments

Comments
 (0)