-
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
Set font styles from block appender placeholder to inherit #21725
Conversation
Size Change: +19 B (0%) Total Size: 842 kB
ℹ️ View Unchanged
|
Hello @Aljullu! Thank you for this PR! Incidentally I just created a PR that is similar to this one and which fixes the same issue: #21749. Only instead of removing the
In my tests that actually fixes the issue correctly: keeps Noto Serif when no editor style is registered, but properly inherits the font assigned to That is, the font reverts to the system font and default system font size. However, your PR was first :) You deserve the props! If you like, you can include the I will then rebase my PR off of yours, because my PR also adds inheritance to the Title block. What do you think? |
Ha, no problem with the props. 🙂 I updated this PR with your feedback, but feel free to merge yours directly if that's easier. |
The rebase is trivial! I'll give this PR a good testing in various themes and approve in a little bit. |
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.
Description
Fixes #21724.
This PR sets
font-family
andfont-size
properties toinherit
, so they don't force a specific font style that themes need to overwrite.How has this been tested?
Tested how the block appender looks in many themes (Twenty Twenty, Twenty Nineteen, Twenty Seventeen, Twenty Fifteen and Storefront) to verify #21724 is fixed in the themes affected by it and that there are no regressions in the other themes. Tested in Firefox and IE11 to ensure #8654 wasn't reintroduced.
Screenshots
Using Twenty Seventeen (even though some other themes are affected as well):
Before:
After:
Types of changes
CSS bug fix.