-
Notifications
You must be signed in to change notification settings - Fork 360
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
Conversation
"version": 2, | ||
"templateParts": [ | ||
{ | ||
"name": "header", | ||
"area": "header" | ||
}, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
62b7d32
to
f981bfb
Compare
Going to bring this in but leave the associated issue open for final design review. |
"radius": "0px" | ||
}, | ||
"color": { | ||
"background": "var:preset|color|foreground", |
There was a problem hiding this comment.
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
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](https://user-images.githubusercontent.com/146530/160442934-a03293ff-a9fd-4213-a27b-42e2e9cb37d6.png)
![image](https://user-images.githubusercontent.com/146530/160442984-cfe5334b-167c-4d6c-8bba-d97d6d1de16a.png)
After:
![image](https://user-images.githubusercontent.com/146530/160442840-280f61a7-b710-4f9c-a58e-97cd284e2aeb.png)
![image](https://user-images.githubusercontent.com/146530/160442875-3cdb7bf6-1113-4f40-9e29-b70be4ea2e53.png)
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](https://user-images.githubusercontent.com/146530/160464157-139efb21-002b-4ace-b25f-90caecb082d9.png)
![image](https://user-images.githubusercontent.com/146530/160464208-dd66422b-9963-4b16-aeea-ad5bd0b83471.png)
Mobile With Featured Image
![image](https://user-images.githubusercontent.com/146530/160464238-b2252632-0499-490f-aae4-5341ef46b550.png)
Desktop Without Featured Image
![image](https://user-images.githubusercontent.com/146530/160464286-a42973e1-af5a-422d-a7e7-c839242fd693.png)
Mobile Without Featured Image