-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
Description
This appeaers to be a regression in trunk after #57735
#57735 changed the font collection id to slug, the changes were made mainly on the PHP side. However, it appears a few parts in the JavaScript side sill expect a colelction id that it may be now undefined.
For example:
In the odal dialog markup the ID is still used for the google fonts tab and tabpanel, but it is now undefined:
The id to be used in these components is expected to be default-font-collection.
More importantly:
I couldn't get the prompt to allow to install Google fonts to shohw. Only after reverting #57735 I was finally able to see the prompt. There is code in the JS implementation that still expects the default-font-collection ID while now it receives undefined.
Screenshot of the prompt to allow to install fonts from Google:
Step-by-step reproduction instructions
- Clear your browser local storage.
- Go to Site editor > Styles > Typography
- Open the fonts modal dialog by clicking the 'Aa' (sigh) icon button.
- Observe the title of the third tab within the modal dialog is 'Google fonts'. Expected: to be 'Install fonts' and change to 'Google fonts' only after permission to install has been given by the user.
- Observe the content of the third tab is the list of Google fonts: Expected: to be the prompt to allow installation.
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes

