Skip to content

Font Library: Improve 'No fonts installed' state when fonts are installed but not activated #63418

@afercia

Description

@afercia

Description

Splitting this out from #63211 (comment)

Cc @matiasbenedetto

WHen there are fonts installed but none of them is activated, the UI still refers to a 'no fonts installed' verbiaage:

  • Th Styles panel shows a 'No fonts installed.` text,
  • The button that opens the modal dialog text is 'Add fonts'.
  • The button to open the modal dialog brings users to the 'Upload' tab. It would be best to bring users to the 'Library' tab.

This UI could be improved to clarify there are fonts installed, they're just not active

Screenshot 2024-07-11 at 12 00 35

Step-by-step reproduction instructions

  • Go to the Site editor > Styles > Typography
  • Make sur eto have some fonts installed.
  • Deactivate all fonts.
  • Close the fonts modal dialog
  • Observe the 'No fonts installed.' text in the Styles panel
  • Observe the 'Add fonts' button text

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions