-
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
Disabling custom font sizes does not remove 'custom' option from Paragraph block font size dropdown #17941
Comments
Hi @badlydrawnben , i reproduced the issue and tried adding a pull request here to resolve the issue. |
Copying over from #18212 which turned out to be a duplicate:
|
@gziolo is this still the case? |
We should have a different custom font size picker now, so it might be no longer a case. @sarayourfriend or @ciampo can you confirm? At least in Storybook, it works as expected: |
I'm personally not familiar with this component, but looking at the folder history, there's been quite a few changes to its source code (refactors and bug fixes)
I can confirm that the "Without Custom Sizes" storybook story seems to work as expected (and therefore doesn't reproduce the original bug in this issue) |
This is frustrating. It is by far the worst result off what bad naming conventions can do.
==> So, in other words, you have to do linguistical and logical mind juggling to understand what what does. Can't something be done about this? 🤷 |
Hey @smileBeda , I'm not sure that the point you're raising is relevant to this specific issue. I would encourage you to open a separate issue or discussion, while also adopting a spirit of collaboration and assuming positive intent from the open source community. |
The dropdown of theme-defined font sizes also has a 'Custom' option, even though I have defined the theme font sizes and removed support for custom font sizes.
To reproduce:
Blank installation of WP 5.2.3 and TwentyNineteen theme.
Install and enable Gutenberg plugin (v6.6.0)
Add this snippet to functions.php
add_theme_support('disable-custom-font-sizes');
Expected behaviour:
The custom text size input field should not be shown - works as expected
The dropdown of text sizes (eg small, medium, large etc) should not also include 'Custom' as an option because that functionality has been removed by that snippet - Does not work as expected.
Note - this problem does not exist if the Gutenberg plugin is deactivated.
The text was updated successfully, but these errors were encountered: