Skip to content

Lightbox: connect with overall linking behavior to ensure proper UX #54916

Closed

Description

@annezazu

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.

Lightbox for images, i4

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:

Lightbox for galleries, longer term

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.

Activity

  1. added
    [Type] Bug
    [Block] Image
    [Feature] Design Tools
    on Sep 28, 2023
  2. jasmussen commented on Sep 29, 2023

    @jasmussen
  3. richtabor commented on Sep 29, 2023

    @richtabor
  4. getdave commented on Sep 29, 2023

    @getdave
    Contributor

    Nice mockups 👍

    Just to add that Expand on click really isn't a search suggestion here where as both of Media file and Attachment page are.

    IMHO expand on click could be a link setting rather than something you select when choose from a list of link search suggestions.

  5. added
    [Feature] Link Editing
    on Sep 29, 2023
  6. jasmussen commented on Sep 29, 2023

    @jasmussen
  7. annezazu commented on Oct 2, 2023

    @annezazu
    Author
  8. jasmussen commented on Oct 3, 2023

    @jasmussen
  9. artemiomorales commented on Oct 3, 2023

    @artemiomorales
  10. annezazu commented on Oct 3, 2023

    @annezazu
    Author
  11. richtabor commented on Oct 3, 2023

    @richtabor
    Member

    Since a gallery cannot be singularly linked, that dropdown control is a blanket control that applies to all images inside. So ideally, "Expand on click" should be an option in that dropdown, shown by default if applied:

    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.

  12. 10 remaining items

  13. moved this to In Progress in Image Lightboxon Oct 11, 2023
  14. moved this from In Progress to Development Feedback in Image Lightboxon Oct 11, 2023
  15. moved this from Dev Feedback to Project Backlog in Image Lightboxon Oct 11, 2023
  16. moved this from In Progress to Punted to 6.5 in WordPress 6.4 Editor Taskson Oct 13, 2023
  17. annezazu commented on Nov 24, 2023

    @annezazu
    ContributorAuthor

    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.

  18. jasmussen commented on Nov 24, 2023

    @jasmussen
    Contributor

    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.

  19. added
    Needs Dev
    on Dec 22, 2023
  20. jasmussen commented on Dec 22, 2023

    @jasmussen
    Contributor

    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.

  21. annezazu commented on Jan 31, 2024

    @annezazu
    ContributorAuthor

    Closing this since this has landed #57608

  22. moved this from Project Backlog to Done in Image Lightboxon Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Blessed for major releaseNeeds Dev[Block] Image[Feature] Design Tools[Feature] Link Editing[Type] Bug

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions