Repository navigation
Description
Right now, if you enable lightbox for an image and then add a link, the lightbox behavior is disabled, breaking user expectations. We need to clarify this experience as right now these behaviors are interconnected but that isn't clear.
"Expand on click" should be designed and optimized for as something that you enable once, globally, and then optionally override on a per-image or gallery basis. In following this approach, it would make sense to move the toggle from the inspector and into the URL toolbar. In doing so, it becomes more intuitively clear that "Expand on click" is mutually exclusive from linking to an attachment page, or a media file.
This design also leverages concepts outlined for the Link Control in #50891.
Separately, for when applying lightbox through a singular action across images in a gallery, the same dropdown that is currently used for linking to attachment or media files would be used:
See also: #56587 for conversations on the expand behavior as applied in galleries.
Issue updated Dec 22.
Previous version of the issue
Right now, if you enable lightbox for an image and then add a link, the lightbox behavior is disabled, breaking user expectations. We need to clarify this experience as right now these behaviors are interconnected but that isn't clear. Here's an example where you can enable lightbox and add a link but that then silently breaks lightbox behavior:
lightbox.mov
@jasmussen can you look into mapping this out? It seems like if you have lightbox enabled, we should disable the ability to add a link or consider a way to group these settings together since they interrelate.
Feel free to edit the title of this issue as it's a bit rough.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
- StatusShow more project fieldsDone
- StatusShow more project fields✅ Done
Activity
jasmussen commentedon Sep 29, 2023
richtabor commentedon Sep 29, 2023
getdave commentedon Sep 29, 2023
Nice mockups 👍
Just to add that
Expand on clickreally isn't a search suggestion here where as both ofMedia fileandAttachment pageare.IMHO expand on click could be a link setting rather than something you select when choose from a list of link search suggestions.
jasmussen commentedon Sep 29, 2023
annezazu commentedon Oct 2, 2023
jasmussen commentedon Oct 3, 2023
artemiomorales commentedon Oct 3, 2023
annezazu commentedon Oct 3, 2023
richtabor commentedon Oct 3, 2023
Alternatively, we can use the same toolbar control as proposed for the image block on the gallery, omitting the inspector "Link to" control on the gallery block.
10 remaining items
annezazu commentedon Nov 24, 2023
Just bringing in feedback from this YouTube video around how cumbersome it is to set the expand on click option for each individual image in a Gallery. This touches on comments further up where we need to think about these settings within a Gallery block too. Happy to open a separate issue or just track this in this issue as part of this broader work.
jasmussen commentedon Nov 24, 2023
The solution to that, IMO, is to lean into lightbox being something you set on by default, and then toggle off on a per-image basis, as somewhat touched upon here and part of the motivation for the URL dialog design.
jasmussen commentedon Dec 22, 2023
For folks subscribed, I've updated this issue with a summary of the conversation, and the agreed upon mockups put into the body of the original issue, so it's hopefully easier to understand the next step. I've also gone ahead and hidden the conversation that was resolved (you can still expand the comments if you like) for clarity.
annezazu commentedon Jan 31, 2024
Closing this since this has landed #57608