Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Hide the Font Size picker on Paragraph blocks when there is only one size defined #11628
The suggestion to not render if there aren't any options to choose sounds like a good decisions-not-options route, however, would it be confusing for someone if they were expecting to see the option there and it's missing? Or would that be fine as an edge case and worth it for the simplicity? What about displaying as plain text if choosing an option isn't available?
Might be a good "Needs Design Feedback" ticket too.
To clarify, the feedback we need:
We can decide on the implementation after deciding how to handle it visually!
referenced this issue
Jan 8, 2019
In #5570 color palette can be disabled altogether with this code:
add_theme_support( 'editor-color-palette' ); add_theme_support( 'disable-custom-colors' );
The same should work for font sizes:
add_theme_support( 'editor-font-sizes' ); add_theme_support( 'disable-custom-font-sizes' );
But this leads to an error:
I also tried with empty array:
But this gives default font sizes like noted in previous comments. Anything we can do to move this forward?