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
{{ message }}
Repository navigation
Commit fcf9c27
Browse filesBrowse the repository at this point in the historyBrowse files
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.
| 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 |
144
144
| FR2 | Viewer overlay carries the current `lightbox` target. Media, Caption, and Counter carry no Lightbox public target. | Current source and public docs | settled |
145
145
| 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 |
146
146
| 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`.
177
177
| Single image | Viewer overlay, Media, and Close button render. | Caption and zoom may be absent or present. |
178
178
| Gallery boundary | Both navigation buttons and Counter remain rendered. | Previous or Next is disabled at its boundary. |
179
179
| 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. |
181
181
| Zoomed image | A double tap or double-click, `-`, or `0` returns to the fitted size. | The zoom level and pan position. |
182
182
| Controls hidden | Controls stay focusable and in the accessibility tree; focus or a key brings them back. | Backdrop shade while hidden. |
Copy file name to clipboardExpand all lines: packages/core/locales/en.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1589,11 +1589,11 @@
1589
1589
},
1590
1590
"@astryx.lightbox.captionMore": {
1591
1591
"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`."
1593
1593
},
1594
1594
"@astryx.lightbox.captionLess": {
1595
1595
"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`."
0 commit comments