Skip to content

Image Block retains rounded style within Lightbox #67535

@relic-se

Description

@relic-se

Description

I expect for the full image to be visible when opened within the Lightbox modal. The "Rounded" style should only apply within the site blocks, not within the Lightbox.

I understand that this is likely a preference that is dependent on the scenario and is up for debate. I'd like to bring it up as a discussion point at the least to assess a potential solution.

Step-by-step reproduction instructions

  1. Add an image block to a Gutenberg-enabled page.
  2. Set the image block to the "Rounded" style within the "Styles" tab of the block settings sidebar.
  3. Use the link drop down of the contextual menu and select "Expand on click" on the image block.

Screenshots, screen recording, code snippet

Image

Environment info

  • WordPress 6.7.1, Gutenberg 19.7.0, Twenty-Twenty Five Theme
  • Browser: Firefox
  • Device: Desktop with Debian Linux

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Labels

[Block] ImageAffects the Image Block[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions