-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lightbox: connect with overall linking behavior to ensure proper UX #54916
Comments
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Nice mockups 👍 Just to add that IMHO expand on click could be a link setting rather than something you select when choose from a list of link search suggestions. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
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. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Perfect, thanks! I should have this UI fixed by the end of the beta period. |
I created a follow-up to this issue that details the move #55020. |
@artemiomorales Please let me know if you go ahead with attempting to implement what Rich has in #55020. I've worked a lot with One thing to consider is that we should try and avoid augmenting the API of |
I opened a PR to do the simple fix: #55141 |
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. |
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. |
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. |
Closing this since this has landed #57608 |
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.
The text was updated successfully, but these errors were encountered: