Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archeo: Add pattern 6 #5487

Merged
merged 10 commits into from
Feb 14, 2022
Merged

Archeo: Add pattern 6 #5487

merged 10 commits into from
Feb 14, 2022

Conversation

scruffian
Copy link
Member

Changes proposed in this Pull Request:

Adds pattern 6:
Screenshot 2022-02-09 at 11 29 18

I used the min height fix on the cover block to get the text to align to the bottom of the image.

Related issue(s):

@scruffian scruffian added the [Theme] Archeo Automatically generated label for Archeo. label Feb 9, 2022
@scruffian scruffian requested review from kjellr and a team February 9, 2022 11:30
@scruffian scruffian self-assigned this Feb 9, 2022
@scruffian scruffian mentioned this pull request Feb 9, 2022
9 tasks
Copy link
Contributor

@jffng jffng left a comment

Choose a reason for hiding this comment

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

I am getting a block validation error when I insert this pattern:

Editor Error message 1 Error message 2
Screen Shot 2022-02-09 at 9 18 35 AM Screen Shot 2022-02-09 at 9 22 49 AM Screen Shot 2022-02-09 at 9 23 25 AM

@scruffian
Copy link
Member Author

Thanks for the review @jffng I've addressed your feedback, so ready for another look :)

@jffng
Copy link
Contributor

jffng commented Feb 9, 2022

Looking good, I still encounter the block validation error when inserting, maybe someone else can verify.

archeo/style.css Outdated
@@ -113,6 +113,7 @@ body > .is-root-container,
.edit-post-visual-editor__post-title-wrapper,
.wp-block-group.alignfull,
.wp-block-group.has-background,
.wp-block-columns.alignfull.has-background,
Copy link
Contributor

Choose a reason for hiding this comment

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

I added this rule because without it, Gutenberg's default padding for columns with a background color is applying and messing up the alignment:

Before After
Screen Shot 2022-02-09 at 12 50 55 PM Screen Shot 2022-02-09 at 12 50 40 PM

Copy link
Member Author

Choose a reason for hiding this comment

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

We should probably bubble this change up to TT2, Blockbase, Stewart and Livro.

Copy link
Contributor

Choose a reason for hiding this comment

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

The padding in the editor is a little too intense — not sure why that doesn't match?
Screen Shot 2022-02-10 at 11 22 12 AM

Copy link
Contributor

Choose a reason for hiding this comment

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

I missed the equivalent rule for targeting the editor. I added it here: 74bfa70#diff-2769b329cf3d32aab10e3f345c0da915cd1f6d5ffba70ebdeb7c5786597dca3dR119

Do you think these additions make sense? We are saying, "apply the site wide padding and negative margins for columns that are aligned full with a background color".

Copy link
Member

Choose a reason for hiding this comment

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

Do you think these additions make sense?

Yeah I think this makes sense, especially with the background color applied. Interested to see what anyone else thinks though, in case we're missing something.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it makes sense. But maybe break this out into a separate PR and more thoroughly test it against other themes?

@mikachan
Copy link
Member

mikachan commented Feb 9, 2022

I think I've managed to fix the block validation error. I'm not 100% sure exactly what was wrong, but I think it was maybe the hard-coded image IDs and some of the classes? I just re-copied the code from GB until it was happy.

@jffng
Copy link
Contributor

jffng commented Feb 10, 2022

I think I've managed to fix the block validation error. I'm not 100% sure exactly what was wrong, but I think it was maybe the hard-coded image IDs and some of the classes? I just re-copied the code from GB until it was happy.

Nice, it worked, thank you @mikachan !

@kjellr
Copy link
Contributor

kjellr commented Feb 10, 2022

Left a small comment above, but otherwise this looks good on my end. Thanks!

@jffng
Copy link
Contributor

jffng commented Feb 10, 2022

Still not sure about this: #5487 (comment)

@scruffian scruffian merged commit be49195 into trunk Feb 14, 2022
@scruffian scruffian deleted the add/pattern-6 branch February 14, 2022 10:17
@scruffian
Copy link
Member Author

I took the alignment rule out of this before I merged it, and moved it to #5526

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Theme] Archeo Automatically generated label for Archeo.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants