Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Try: Remove wrappers from landing pages, and set zero margin to individual patterns. #669

Merged
merged 4 commits into from
Nov 5, 2024

Conversation

juanfra
Copy link
Member

@juanfra juanfra commented Nov 5, 2024

Description

Fixes #664

We're removing the wrappers of the landing pages, so that they're functional in the zoom out view. To respect the designs, we are also setting a zero margin to the patterns that are involved in these landing pages.

Screenshots

Screen.Recording.2024-11-05.at.15.16.15.mov

Testing Instructions

  1. Create a page.
  2. Insert a landing page. Choose from: "Shop homepage", "Business homepage", "Landing page for book", "Landing page for event", "Landing page for podcast".
  3. Confirm that the design is ok.
  4. Confirm that the styles of the main sections of the landing pages are accessible in zoom out view.

Repeat again, creating a page from the site editor.

@juanfra juanfra added the [Type] Bug An existing feature does not function as intended. label Nov 5, 2024
Copy link

github-actions bot commented Nov 5, 2024

Preview changes

You can preview these changes by following the link below:

I will update this comment with the latest preview links as you push more changes to this PR.

Note

The preview sites are created using WordPress Playground. You can add content, edit settings, and test the themes as you would on a real site, but please note that changes are not saved between sessions.

Copy link

github-actions bot commented Nov 5, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: juanfra <[email protected]>
Co-authored-by: jasmussen <[email protected]>
Co-authored-by: richtabor <[email protected]>
Co-authored-by: carolinan <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link
Contributor

@jasmussen jasmussen left a comment

Choose a reason for hiding this comment

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

Thanks for this, this works well for me:

1

2

3

It simplifies all the patterns to have a more basic nesting structure, and in the process it also ensures that selecting a section and applying a section style works the same, and as expected, whether you're zoomed or not!

@richtabor
Copy link
Member

What do you think about applying margin 0 for any fullwidth patterns that can be inserted? That way they all work the same, and you don't end up with this:

CleanShot 2024-11-05 at 09 39 56

@jasmussen
Copy link
Contributor

What do you think about applying margin 0 for any fullwidth patterns that can be inserted? That way they all work the same, and you don't end up with this:

I'd support that. We'd still need the fewer wrappers, but it could simplify the code, no?

@juanfra
Copy link
Member Author

juanfra commented Nov 5, 2024

What do you think about applying margin 0 for any fullwidth patterns that can be inserted? That way they all work the same, and you don't end up with this:

@richtabor @jasmussen the problem with setting all of them to zero is that the layout setting for block spacing won't affect any pattern.

@jasmussen
Copy link
Contributor

the problem with setting all of them to zero is that the layout setting for block spacing won't affect any pattern.

I think that's fine, it will still affect paragraphs and other bits and pieces. I don't think there's an expectation that this particular property would affect the sections as such.

@juanfra
Copy link
Member Author

juanfra commented Nov 5, 2024

Ok, I updated the rest of the full width patterns.

@jasmussen
Copy link
Contributor

Ship it!

@juanfra juanfra merged commit b8c032e into trunk Nov 5, 2024
4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
[Type] Bug An existing feature does not function as intended.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Full page patterns have redundant nested groups which makes section styles unpredictable
3 participants