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

Pendant: Template: Single #5784

Merged
merged 2 commits into from
Mar 31, 2022
Merged

Pendant: Template: Single #5784

merged 2 commits into from
Mar 31, 2022

Conversation

pbking
Copy link
Contributor

@pbking pbking commented Mar 28, 2022

May fix: #5744
Started by @PeterNdomano here.

This has a dependence on #5755 which should come in first.

Changes proposed in this Pull Request:

Adds an increased Header size to achieve target design for Single Page.
(Note: The [Page Title] block renders an H2 element, but the design called for the size shown for H1. To compensate I increased the size of H1 and backfilled the sizes from H4. This way the natively rendered H2 element hits the design. Please let me know if that's OK for the design.

I have also converted all of the units from px to rems in this process.

Before:
image
image

After:
image
image

Everything else was achievable using either Global Styles or Block-level configuration in the FSE.

Gap sizes are approximate compared to the figma design, however the implementation is simply constructed and scales dynamically. Hopefully the spacing suits.

Desktop With Featured Image
image
image

Mobile With Featured Image
image

Desktop Without Featured Image
image

Mobile Without Featured Image

image

@pbking pbking requested a review from beafialho March 28, 2022 18:39
@pbking pbking added [Theme] Pendant [Status] Needs Design Approval This task needs a designer to approve the changes before it can be merged or marked complete. labels Mar 28, 2022
Comment on lines -2 to -7
"version": 2,
"templateParts": [
{
"name": "header",
"area": "header"
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this happening because of the spaces to tabs change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes.

@pbking pbking force-pushed the add/pendant-single branch from 62b7d32 to f981bfb Compare March 31, 2022 13:26
@pbking
Copy link
Contributor Author

pbking commented Mar 31, 2022

Going to bring this in but leave the associated issue open for final design review.

@pbking pbking merged commit 7aaeda4 into trunk Mar 31, 2022
@pbking pbking deleted the add/pendant-single branch April 12, 2022 14:15
"radius": "0px"
},
"color": {
"background": "var:preset|color|foreground",

Choose a reason for hiding this comment

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

@pbking @MaggieCabrera would either of you be able to please point me to how/what this syntax is doing please? var:preset|color|foreground

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Needs Design Approval This task needs a designer to approve the changes before it can be merged or marked complete. [Theme] Pendant
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pendant: Templates: Single Post
3 participants