Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Add overlapping images block pattern #370

Merged
merged 5 commits into from
Oct 12, 2020

Conversation

kjellr
Copy link
Collaborator

@kjellr kjellr commented Oct 8, 2020

This PR adds the "Overlapping Gallery" pattern from #50, but calls it "Overlapping Images" to better represent the blocks used in it.

It's a way simpler alternative to #277. The exact overlap here is a little different from the comps, so I'm interested in your thoughts, @melchoyce. Feel free to recommend any adjustments. It also loses the overlap completely on mobile, which is a little unfortunate. This is because of the way the columns block stacks its columns by default on mobile. We could change that, but I imagine we'd run into some issues.

Mobile 760px 1024px 1400px
gutenberg test__p=1 (4) gutenberg test__p=1 gutenberg test__p=1 (1) gutenberg test__p=1

^ Note that there looks to be a small bug in the tablet (760px) breakpoint. I'm going to dig into that, but its unrelated to this PR, so I think it can be handled separately. EDIT: Fixed in #372

@kjellr kjellr added Needs design feedback [Component] Block patterns Issues related to block patterns shipped with theme labels Oct 8, 2020
@kjellr kjellr requested a review from melchoyce October 8, 2020 17:03
@kjellr kjellr self-assigned this Oct 8, 2020
Copy link
Contributor

@melchoyce melchoyce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one's good from a design standpoint.

One positive I've realized about this approach is, since it's using individual image blocks, you'll be able to link to pages.

@carolinan carolinan merged commit 7f8ee0b into trunk Oct 12, 2020
@kjellr kjellr deleted the add/overlapping-images-block-pattern branch October 12, 2020 12:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
[Component] Block patterns Issues related to block patterns shipped with theme
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants