Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font Library: Resolve an issue where a border was appearing even when no fonts were available. #57371

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from

Conversation

HrithikDalal
Copy link
Contributor

What?

Fixes a bug where, If the currently active theme does not define fonts, an unnatural border is displayed.

Why?

Issue Reference - #54527

How?

I've implemented a check in the code. Now the Font Listing will be displayed only when fonts are available. Otherwise, a message will be displayed stating 'No fonts available.'

Testing Instructions

  • Remove all fonts from your theme.
  • Open the Site Editor.
  • Global Styles > Typography

Screenshots or screencast

Before -
image

After -
image

When fonts are available. (No change)
image

@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Dec 26, 2023
Copy link

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @HrithikDalal! In case you missed it, we'd love to have you join us in our Slack community, where we hold regularly weekly meetings open to anyone to coordinate with each other.

If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository
1 participant