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

Update/afternoon presets #564

Merged
merged 11 commits into from
Oct 14, 2024
Merged

Conversation

troychaplin
Copy link
Contributor

Description

Fixing some of the items noted in #538

Copy link

github-actions bot commented Oct 11, 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: troychaplin <[email protected]>
Co-authored-by: juanfra <[email protected]>
Co-authored-by: karmatosed <[email protected]>
Co-authored-by: carolinan <[email protected]>
Co-authored-by: beafialho <[email protected]>

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

Copy link

github-actions bot commented Oct 11, 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.

@karmatosed
Copy link
Member

@troychaplin it looks like a few things would be helpful here:

  1. Can you please provide all the fixes if possible for this in the PR so we can get them all in? Unless I am mistaken some are missing.
  2. Can you show a screenshot of the changes please?

@troychaplin
Copy link
Contributor Author

troychaplin commented Oct 13, 2024

@troychaplin it looks like a few things would be helpful here:

1. Can you please provide all the fixes if possible for this in the PR so we can get them all in? Unless I am mistaken some are missing.

2. Can you show a screenshot of the changes please?

More than happy to try, I made some comments on the issue here, would be happy to cycle back and try and finish them off with a bit of clarity on my notes. Might not get a chance to look until tomorrow, holiday weekend in Canada, away most of the day.

@troychaplin
Copy link
Contributor Author

@karmatosed here are some before and after images of each change I've made.

--
Change font preset XXL: min 2rem, max 2.6rem & Change font preset XL: min 1.4rem, 1.8rem

font-preset-xxl-xl

--
Text: set to font-weight: 300, line height to 1,5

text-weight-height

--
Headings: set to font-weight: 400, letterSpacing: -0,1px , line-height: 1.2

heading-weight-space-height

--
Site Title: set to Large font size

site-title-large

--
Titles (Post Titles): any specific settings should be removed, they should inherit the headings settings

post-titles-remove-settings

@troychaplin
Copy link
Contributor Author

troychaplin commented Oct 14, 2024

@karmatosed In the json file for afternoon I changed the styles for post-author-name but now I wonder if post-author should also be changed? (maybe even post-author-biography?)

--
Another thing I noticed and want to make sure it's of no concern. When I remove the post-author-name in the afternoon json file it displays larger than I would expect in the style book, like the following:

removed-from-json

--
If I change it to small instead of removing it, the size displays correctly in the style book like this:

set-as-small

--
Regardless of the size display in the book, the front end is correct regardless of which change is made, I test both and they both look like the following:

frontend-output

@troychaplin
Copy link
Contributor Author

@karmatosed I went back to the list of heading sizes and I think it clicked. I tested that each heading was set to the size in the original list by temporary changing the fontSizes under settings / typography and testing in the editor and style book.

In the process I added settings for h5 and h6 as per the original notes in issue #538

The original list of requested changes are:

H1: XXL font size
H2: XL font size
H3: L font size
H4: M font size
H5: M font size
H6: S font size + (remove uppercase, letter spacing, remove specific font weight, it should be 400 same as others)

Adding styles for h5 and h6 looks like the following:

heading-sizes

@carolinan
Copy link
Contributor

Correct, if the sizes match those that are in theme.json, they do not need to be added in these files, they will be inherited from theme.json.

@beafialho
Copy link
Contributor

Thank you @troychaplin!

All is looking as expected to me.

In the json file for afternoon I changed the styles for post-author-name but now I wonder if post-author should also be changed?

That would be ok, I think. I don't think that block is used in the templates, but if it has specific settings it could potentially behave awkwardly if users add it to templates so maybe that's a wise call.

@troychaplin
Copy link
Contributor Author

Thank you @troychaplin!

All is looking as expected to me.

In the json file for afternoon I changed the styles for post-author-name but now I wonder if post-author should also be changed?

That would be ok, I think. I don't think that block is used in the templates, but if it has specific settings it could potentially behave awkwardly if users add it to templates so maybe that's a wise call.

Ok, will make this last change shortly!

@troychaplin
Copy link
Contributor Author

@karmatosed @beafialho @carolinan I have removed post-author. I also took a look at post-author-biography and also remove it and now all the post-* referenced in the style book are consistent

Copy link
Member

@juanfra juanfra left a comment

Choose a reason for hiding this comment

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

Thank you very much @troychaplin - Looking good to me.

I left a few adjustments I'm going to commit now and then we're good to merge.

styles/04-afternoon.json Outdated Show resolved Hide resolved
styles/04-afternoon.json Outdated Show resolved Hide resolved
styles/04-afternoon.json Outdated Show resolved Hide resolved
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants