Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Canary: Apply single font sizes as overrides and remove font family definition on headings #279

Merged
merged 4 commits into from
Oct 17, 2022

Conversation

mikachan
Copy link
Member

@mikachan mikachan commented Oct 11, 2022

This changes the way the single font size preset is applied in Canary, as it seems to be causing issues with how typography is used in Global Styles.

Instead of overwriting each font size preset with the same value, this overrides each font size setting to the same preset (small).

This also removes the font family setting for core/heading, as this doesn't seem to be required anymore and it makes managing the font families from Global Styles less confusing.

Fixes #278.

@@ -52,19 +52,20 @@
"slug": "small"
},
{
"size": "0.75rem",
"size": "1.125rem",
Copy link
Collaborator

Choose a reason for hiding this comment

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

If the only change to the fontSizes compared to theme.json is that they are not fluid, I wonder if this could be simplified 🤔

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 difference with the Canary fontSizes is that they're all the same size.

@mikachan mikachan changed the title Canary: Apply single font sizes as overrides Canary: Apply single font sizes as overrides and remove font family definition on headings Oct 13, 2022
@mikachan
Copy link
Member Author

I'm going to bring this in as I believe it addresses the issues from #278, but please open any further related issues if needed.

@mikachan mikachan merged commit 0ff38b3 into trunk Oct 17, 2022
@mikachan mikachan deleted the update/canary-font-sizes branch October 17, 2022 13:15
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.

Canary Variation: Headings element changes not sticking
2 participants