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

Twenty Twenty One Blocks: Migrate Paragraph Block styles #93

Merged
merged 8 commits into from
Dec 10, 2020

Conversation

MaggieCabrera
Copy link
Collaborator

@MaggieCabrera MaggieCabrera commented Nov 25, 2020

Added styles for strong, b, and other tags that affect the paragraph block (and others, of course):

https://github.com/WordPress/twentytwentyone/blob/trunk/assets/sass/04-elements/misc.scss

Related #91

@MaggieCabrera MaggieCabrera added the block-based theme A theme using HTML templates label Nov 25, 2020
@MaggieCabrera MaggieCabrera requested a review from kjellr November 25, 2020 11:27
@MaggieCabrera MaggieCabrera self-assigned this Nov 25, 2020
@MaggieCabrera MaggieCabrera changed the title Tewnty Twenty One Blocks: Migrate Paragraph Block styles Twenty Twenty One Blocks: Migrate Paragraph Block styles Nov 25, 2020
@scruffian
Copy link
Collaborator

I think it would be good to remove the code that needs to live in GB so we can merge the other changes...

Copy link
Collaborator

@scruffian scruffian left a comment

Choose a reason for hiding this comment

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

This looks good to me but it would be good to get a 👍 from @kjellr too

.has-huge-font-size,
.has-gigantic-font-size {
font-weight: var(--wp--custom--font-weight-light);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This was kind of a weird hack the theme did — we wanted to make sure that the largest font size presets all used a light weight. Not the best solution. 😅

It's fine to remove this, but we should try to make sure the h1 begins using the light font weight preset once it's available to that block.

Copy link
Collaborator

@kjellr kjellr left a comment

Choose a reason for hiding this comment

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

I left one small suggestion, but once that's in this should be good to land. 👍 Thank you!

@MaggieCabrera MaggieCabrera merged commit cbcbbfa into master Dec 10, 2020
@MaggieCabrera MaggieCabrera deleted the fix/mimic-paragraph-styles branch December 10, 2020 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
block-based theme A theme using HTML templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants