Font Library: Show contextual warning when deleting a font that is in use#78153
Font Library: Show contextual warning when deleting a font that is in use#78153dhruvikpatel18 wants to merge 1 commit into
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
Closes #55175
What?
Updates the delete confirmation dialog in the Font Library to show a stronger, context-aware warning when the font being deleted is currently assigned to a style target (body text, headings, elements, or blocks) in the site's global styles.
Why?
Previously, the delete confirmation dialog showed the same generic message regardless of whether the font was actively used anywhere on the site.
That gave no indication to the user that deleting the font would have a visible impact on their site — pages using that font would silently fall back to the default font with no warning. This was flagged in the FSE Outreach Program's Final Touches testing call as confusing and potentially destructive behaviour.
Testing Instructions
Screenshots or screencast
Screen.Recording.2026-05-11.at.3.57.09.PM.mov