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

Anchor FM Theme Font Pairings #48661

Merged
merged 6 commits into from
Jan 14, 2021
Merged

Anchor FM Theme Font Pairings #48661

merged 6 commits into from
Jan 14, 2021

Conversation

krymson24
Copy link
Contributor

@krymson24 krymson24 commented Jan 5, 2021

Changes proposed in this Pull Request

  • Dynamically add font pairings

Testing instructions

  1. Checkout this branch
  2. Go to http://calypso.localhost:3000/new?anchor_podcast={anchor_podcast_id}
  3. Enter a podcast name
  4. Click one of the available designs
  5. The font pairings should include additional font pairings specific to the type of onboarding flow

Screenshots

Screen Shot 2021-01-09 at 1 49 45 AM

Screen Shot 2021-01-09 at 1 49 49 AM

Fixes 382-gh-Automattic/dotcom-manage

@krymson24 krymson24 requested a review from a team January 5, 2021 06:42
@krymson24 krymson24 self-assigned this Jan 5, 2021
@matticbot
Copy link
Contributor

@matticbot matticbot added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Jan 5, 2021
@matticbot
Copy link
Contributor

matticbot commented Jan 5, 2021

Here is how your PR affects size of JS and CSS bundles shipped to the user's browser:

App Entrypoints (~61 bytes added 📈 [gzipped])

name                 parsed_size           gzip_size
entry-gutenboarding       +130 B  (+0.0%)      +61 B  (+0.0%)

Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used.

Legend

What is parsed and gzip size?

Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory.
Gzip Size: Compressed size of the JS and CSS files. This much data needs to be downloaded over network.

Generated by performance advisor bot at iscalypsofastyet.com.

@krymson24 krymson24 force-pushed the add/anchorfm-font-pairings branch from 24a6f52 to f8aa5f1 Compare January 7, 2021 22:52
@mmtr
Copy link
Member

mmtr commented Jan 8, 2021

I think the style preview of the Raleway / Cabin pair is reversed? I was expecting "Raleway" to be bolder than "Cabin":

Screen Shot 2021-01-08 at 16 08 51

I see the appropriate font-weight has been set, so we are probably not loading the font from Google for that weight:

Screen Shot 2021-01-08 at 16 11 23

I guess we need to consider the Anchor specific font pairings in one of these places:

const query = fontPairings.reduce( ( acc, pairing ) => {

fontPairings.forEach( ( { base, headings } ) => {

@krymson24
Copy link
Contributor Author

krymson24 commented Jan 8, 2021

I think the style preview of the Raleway / Cabin pair is reversed? I was expecting "Raleway" to be bolder than "Cabin":

I was confused about the combination as well since we have Raleway and Cabin, and then Cabin and Raleway, but it was confirmed here -- 382-gh-Automattic/dotcom-manage#issuecomment-756272357

@mreishus
Copy link
Contributor

mreishus commented Jan 8, 2021

Checking the linked comment, I don't see anything about the font weight / boldness.

Should the pairings look like

  • Cabin (bold) / Railway
  • Railway (bold) / Cabin
    ?

That's what I'd expect, but it's appearing like:

  • Cabin (bold) / Railway
  • Railway / Cabin (bold)

@krymson24
Copy link
Contributor Author

Checking the linked comment, I don't see anything about the font weight / boldness.

Should the pairings look like

  • Cabin (bold) / Railway
  • Railway (bold) / Cabin
    ?

That's what I'd expect, but it's appearing like:

  • Cabin (bold) / Railway
  • Railway / Cabin (bold)

Oooh -- I misunderstood. Yes, you're right!

@krymson24 krymson24 force-pushed the add/anchorfm-font-pairings branch from f8aa5f1 to 54bd0e7 Compare January 9, 2021 06:25
@@ -122,7 +122,6 @@ export function useOnboardingFlow(): string {
}
return FLOW_ID;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Accidental?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, I think so... VS Code UI makes it look like there's an extra space there with their annotations. Anyway, added it back and also removed the ANCHOR_FM_FLOW_ID constant as promised!

@kwight
Copy link
Contributor

kwight commented Jan 11, 2021

@ianstewart Can you confirm for us that this is what we want: both font pairings available for both Anchor themes? And keeping the total pairings at 7 (five original plus the two new ones)? I assumed regardless of how many we offer specific to Anchor, we'd keep the total at five.

Screen Shot 2021-01-11 at 11 01 14 AM

@ianstewart
Copy link
Contributor

ianstewart commented Jan 12, 2021

@kwight that should work cc @sfougnier @ollierozdarz

@krymson24
Copy link
Contributor Author

This is ready for review!

@krymson24 krymson24 force-pushed the add/anchorfm-font-pairings branch from 0f860ff to c60fdd7 Compare January 13, 2021 00:04
Copy link
Contributor

@kwight kwight left a comment

Choose a reason for hiding this comment

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

I think we're good!

@krymson24 krymson24 force-pushed the add/anchorfm-font-pairings branch from c60fdd7 to 967ccfc Compare January 13, 2021 22:54
@krymson24 krymson24 force-pushed the add/anchorfm-font-pairings branch from 967ccfc to 669776f Compare January 13, 2021 23:38
@krymson24 krymson24 force-pushed the add/anchorfm-font-pairings branch from b2ac5a8 to 2a5a54c Compare January 14, 2021 00:48
@krymson24 krymson24 merged commit da4bd5e into trunk Jan 14, 2021
@krymson24 krymson24 deleted the add/anchorfm-font-pairings branch January 14, 2021 02:24
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants