Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Cubic: spacing missing between gallery blocks #5814

Closed

Description

@mikachan

Steps to replicate

Since WordPress/gutenberg#38164 has merged, there will now be no default margin set between gallery blocks. This will affect themes that were relying on the margin on the gallery images to provide a gap between galleries, rather than actually setting a top margin to separate the blocks. As GB has switched from using margin to gap to separate the images in a gallery this removes this default separation.

Cubic is impacted by this:

Before After
image image

We could apply a CSS patch to fix this, for example:

figure.wp-block-gallery.has-nested-images {
    margin-top: 16px;
}

User report: p1649072900167279-slack-C029FM1EH

Activity

  1. added
    [Type] Bug
    on Apr 5, 2022
  2. self-assigned this
    on Apr 14, 2022
  3. madhusudhand commented on Apr 14, 2022

    @madhusudhand
    Contributor

    Parent theme boardwalk also impacted.

  4. pbking commented on Apr 15, 2022

    @pbking
    Contributor

    I see the potential fix can be found here: D78763-code

    Looks like a situation isn't covered by that fix (yet) though. (.wp-block-gallery:not(.has-nested-images) and needs another look-see. Moving back to in-progress for some more tweaking.

  5. madhusudhand commented on Apr 26, 2022

    @madhusudhand
    Contributor

    Changes deployed and verified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Theme] Cubic[Type] Bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions