Skip to content

Move "Expand on click" to the image link control #55020

@richtabor

Description

@richtabor

As a follow-up to #54916 (comment) (and related to #50893) let's move the lightbox "Expand on click" control from the inspector to the existing link action control.

Why? You can only have one of these options selected at a time. Connecting them into one singular (and familiar) experience will help reduce confusion when attempting to link an image with the lightbox effect applied (or vise-versa).

Visuals

  1. The LinkControl implementation for the image block, as detailed in Image and Media & Text blocks: Use LinkControl #50893, with the new control for "Expand on click".
  2. The selected state indicating that the click action is set to "Expand on click". Removing should not close the link modal, but bring it back to the initial state above.
3 5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs DevReady for, and needs developer efforts[Block] ImageAffects the Image Block[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions