-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Relative Font Size #2610
Comments
This seems to be coming from here:
$editor-font-size: 16px; from _variables.scss file, and only affects "paragraph", any other block is unaffected and em applies automatically instead of px .
Changing that line from |
I agree with the general issue here. If the user's intention is to have slightly bigger or smaller text, and one switches themes or devices, the pixel is not a great unit of measurement. I'd rather see a control where the default is 1 and you can change the magnitude relative to the paragraph's font-size. Not sure how that is done best in CSS. |
I just found out that even without touching the font size setting on paragraphs all |
Would it be acceptable to have an inner span with the style on it? Then it would pick up the pixel size from the parent paragraph. Example of what I mean here: http://notnownikki.com/size.html |
There is exploration of different fonts happening in #2782 and I think it's ok to focus on that for now. We can always reopen. |
Issue Overview
In the current version of Gutenberg (1.0.0) changing the font-setting in the paragraph block results in a specific pixel size being set. This will cause issues on smaller screens as any media queries set by a theme author won't have any effect on the font-size.
A better approach would be to set the font-size in ems or rems which would allow the font-size to scale based on the theme author's styling.
The text was updated successfully, but these errors were encountered: