-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Site Title, Post Title: Fix typography for blocks with a
children
#64911
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,5 +75,8 @@ | |
} | ||
}, | ||
"editorStyle": "wp-block-site-title-editor", | ||
"style": "wp-block-site-title" | ||
"style": "wp-block-site-title", | ||
"selectors": { | ||
"typography": ".wp-block-site-title > span, .wp-block-site-title > a" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This introduces a regression where the editor and frontend apply different styles. The Site Title block doesn't render an inner As proposed over on #65169, I have some ideas to address this and the other issue flagged in #64911 (comment). I'll get a draft PR up soon. |
||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we add more styling options we need to create another selector following the same logic. Plus these selectors don't look ideal and we are sending many bytes over the wise but it seems a fair trade-off.