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

Add: Morning style variation. #261

Merged
merged 11 commits into from
Sep 24, 2024
Merged

Conversation

juanfra
Copy link
Member

@juanfra juanfra commented Sep 9, 2024

Description

Add the Morning (Literata 60pt + Ysabeau Office) global style variation.
Partial for #193

Known limitations

  • Many font sizes don't match the presets. They were hardcoded in this PR.
  • The post author section has a hardcoded font preset in the template that doesn't match the design. So the author size is different than the text that says "Written by".
  • The font size for the comments section looks small in the context, but there's no design for the comments for this variation.

Screenshots

Screenshot 2024-09-09 at 18-30-53 Style Variations – Stories®

Testing Instructions

  1. Go to Appearance > Editor > Styles
  2. At the top of the styles panel, select "Morning".
  3. Save.
  4. Compare the design with the design in Figma

@beafialho
Copy link
Contributor

@juanfra I noticed the titles are looking different than the headings, they seem to have specific styling. If you disable them, the appearance looks right:

titles.mp4

The font sizes are not looking very good. I think we should reset all the heading sizes in this variation to use the sizes from the default one, as they look much better.

@juanfra juanfra added the [Priority] High Used to indicate top priority items that need quick attention label Sep 16, 2024
@juanfra juanfra marked this pull request as ready for review September 16, 2024 14:40
Copy link

github-actions bot commented Sep 16, 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: carolinan <[email protected]>
Co-authored-by: beafialho <[email protected]>
Co-authored-by: jasmussen <[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 Sep 23, 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
Contributor

@carolinan carolinan left a comment

Choose a reason for hiding this comment

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

Style 2

Headings use the text color #191919 (contrast) against the background #182949 (accent 3). This has a contrast ratio of
1.21:1. It needs to be 4.5:1.

I believe this is meant to use base, to match the paragraph text color.

@juanfra
Copy link
Member Author

juanfra commented Sep 23, 2024

Thanks, Carolina. Good catch. I've updated the variation with that change.

"variations": {
"post-terms-1": {
"typography": {
"fontSize": "16px"
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this need to be hardcoded? Is there no matching responsive preset size?

Copy link
Member Author

Choose a reason for hiding this comment

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

There's no preset for 16px, which is the size of the font size for this particular element in the variation. We have --wp--preset--font-size--normal from Gutenberg, which is 16px, but we can't use that.

If we don't want to hardcode the value, we could use medium (18px) or small (14px) alternatives.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd always go for the larger :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Should we run this by Bea once she's back?

@carolinan
Copy link
Contributor

carolinan commented Sep 23, 2024

Feedback: I am struggling to read font size preset small which is 14px, up to preset medium 18px with this font over the grey background.
The text color and background color has a contrast ratio of 4.66:1 which is within the WCAG AA level requirement, but for me, a higher contrast or even better a larger size would help.

This is even more appearant with the new zoom out.

Both the default and Dusk are much more readable to me because of the different size of these fonts.

@carolinan
Copy link
Contributor

size-comparison.mp4

@juanfra
Copy link
Member Author

juanfra commented Sep 23, 2024

Thanks for the feedback, Carolina.

The issues you highlighted are related to the size of the Ysabeau font, compared to fonts used in other variations. The menu item size will happen the other way around with variations like Twilight or Midnight, where the font size for those elements is bigger.

I believe this is a conversation we want to have with design, as some of these elements are probably intended to be like that. Given the time constraints of beta 1, if these are the only blockers, we could merge this and have a new issue to discuss what you highlighted and get @beafialho and @jasmussen in the conversation.

@juanfra juanfra added the [Status] Needs Design Feedback Needs general design feedback. label Sep 23, 2024
"elements": {
"cite": {
"typography": {
"fontSize": "1.12rem",
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this needs to use em if it is supposed to be relative to the size of the quote.

Copy link
Member Author

Choose a reason for hiding this comment

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

The intention was to have it in rem to match the design (~18px). Now that I see this, we can use the medium preset. Unless you prefer to have the em value.

Screenshot 2024-09-24 at 11 24 56

@jasmussen
Copy link
Contributor

Zoom out, give or take any changes that comes to this, should not dictate any font size rules in the theme.

The core of the issue, though: is the gray on light gray font legible at 14px? For me it is, so I'd be tempted to echo Juan and merge this for Beta 1 and then revisit the font sizes (or perhaps the font weights) after the beta period. Notably, Bea is AFK this week, a vacation planned months before the 6.7 cycle even had dates attached, and I'd appreciate her quick gut-check when she gets back.

How does that sound?

@carolinan
Copy link
Contributor

Nobody is pressuring anyone to not have a vacation ❤️

@jasmussen
Copy link
Contributor

Nobody is pressuring anyone to not have a vacation ❤️

Oh, I didn't mean to imply otherwise, and I supremely agree!

@juanfra
Copy link
Member Author

juanfra commented Sep 24, 2024

How does that sound?

That sounds great to me.

I'd prefer not to iterate on the designs now and have Bea (after she's back from her well-deserved time off) participate in the discussion, as there might be some reasoning behind some of the selections (sizes, colors, etc.). We should keep track of all these concerns so we can return to them.

@carolinan
Copy link
Contributor

Please remember that the beta 1 date is not something we have the power to move.

@carolinan carolinan merged commit 3e80d4b into trunk Sep 24, 2024
4 checks passed
@juanfra juanfra deleted the try/add-morning-style-variation branch September 24, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] Style Variations [Priority] High Used to indicate top priority items that need quick attention [Status] Needs Design Feedback Needs general design feedback.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants