-
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
More settings tip: add explicit font size. #55835
Conversation
Size Change: 0 B Total Size: 1.71 MB
ℹ️ View Unchanged
|
Flaky tests detected in ce0d0b9. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6743588381
|
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.
Good catch!
ce0d0b9
to
5321eae
Compare
What?
In certain embedded contexts, CSS bleeds into the more-settings tip, causing the font size to be inherited and perhaps larger. In this screenshot, it's from a Gutenberg embedded in P2 context, where it inherits a 16px font size:
Here's the offending "inherit" for the font size:
This PR explicitly adds a font size so that it should maintain as it should:
The PR also fixes an issue where incorrect CSS was present.
Testing Instructions
This one is hard to test without faking it, but in a new env where the notice isn't dismissed, add this CSS:
Then add "p2-editor" as a class to any parent, such as the
body
element of the editor.You should still see the correct 13px font size on the notice.