WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.53k stars 4.21k forks source link

Styles > Typography: Custom typesets can not be selected, theme typesets can not be deselected #67064

Open carolinan opened 4 days ago

carolinan commented 4 days ago

Description

When you have a block theme active, and the theme registers typography presets, the user can select between them in the Styles sidebar > Typography. By default, the first preset is selected:

Image

But if a user opens "Manage fonts" and installs a new font and saves, it is saved as a custom style. The new font is listed in the Fonts section, and the theme typeset is no longer shown as being selected: it has no dark border: Image

Next, if the user clicks on any theme typeset, they have no way to re-select their custom style in the interface.

The only way to get back to the custom typeset is to refresh the page before saving, or, if you have already saved, use the revisions.

Step-by-step reproduction instructions

Activate Twenty Twenty-Five. Open the Site Editor Open the Styles sidebar Open the Typography panel, and next to the label that says FONTS, click on the icon that has the tooltip "Manage fonts" Install a new font. Save.

Select a typeset under the label TYPESETS The theme typeset is selected.

Try to get your customized typeset back.

Screenshots, screen recording, code snippet

No response

Environment info

WordPress 6.7.

Please confirm that you have searched existing issues in the repo.

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Please confirm which theme type you used for testing.

carolinan commented 4 days ago

Could the customisation be added as a button last on the list of typesets? And all it would do is unset the selection of the theme typeset?

carolinan commented 3 days ago

Originally reported here: https://wordpress.org/support/topic/manage-fonts-not-showing/