Repository navigation
Conversation
A prototype of the Lightbox item model and chrome that the
component:Lightbox record amendment proposes, so reviewers can try it
on a phone. Not for merge.
- Custom items (`{type: 'custom', content, label}`) page and close by
drag as a fitted photo does; a drag on their controls, or in content
that can still scroll, stays the content's.
- Each item's title, subtitle and up to three actions in a top bar.
- A footer with LightboxFilmstrip and LightboxZoomControl, read through
useLightboxGallery and useLightboxZoom.
- Stories under Core/Lightbox/Proposal (preview).
The custom item follows the shape of an earlier proposal for content
items in Lightbox.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
AI review status for this pull request.
|
github-actions
Bot
requested review from
cvkxx,
ernestt,
kentonquatman and
rubyycheung
November 16, 2026 05:30
Contributor
PR Analysis Report
Generated by PR Enrichment workflow | View current CI run |
8 tasks done
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Preview, not for merge. It shows the Lightbox item model and chrome that a spec amendment to
component:Lightboxproposes, so reviewers can try them on a phone. The spec pull request for this amendment is #11999. After the spec owner decides, maintainers either close this or use it as the built pull request's base.Primary intent
A demo for the proposed
component:Lightboxamendment. The decision is the spec's; this code exists only to show it.User or maintainer impact
The demos are three stories under Core/Lightbox/Proposal (preview) in this pull request's Vercel preview, for a phone or a desktop:
Problem and solution fit
The behaviors in the spec are gestures, so a static description cannot show them. The prototype follows the record:
{type: 'custom', content, label}, renders in the photo's place. It pages and closes by drag as a fitted photo does, with zoom off.titlenames the dialog. Itssubtitleand up to threeactionsjoin the top bar, and the counter leads the title there.footerholdsLightboxFilmstripandLightboxZoomControl, which readuseLightboxGallery()anduseLightboxZoom().The custom item keeps the shape that
#7400(imdreamrunner) and#3937(jiunshinn) proposed for issue#2486(ernestt). This preview rebuilds it on currentmainto add the gesture rules.Authority
None yet: the spec pull request holds the decision, pending the spec owner.
Change and evidence
Lightbox.tsx: the item union, the custom page, the drag and key boundaries, the top bar, and the footer with its values.useZoomStage.ts: the dismiss drag takes an optionalshouldBegin.LightboxContext.ts(the two value hooks),LightboxFilmstrip.tsxandLightboxZoomControl.tsx. In the built version each comes from its own import.LightboxProposal.stories.tsx: the three stories.type, which also matches the item union'stype.Scope
Components: Lightbox
Testing