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

Global Styles: Appearance should only show available font-weights #52201

Closed
hanneslsm opened this issue Jul 1, 2023 · 2 comments
Closed

Global Styles: Appearance should only show available font-weights #52201

hanneslsm opened this issue Jul 1, 2023 · 2 comments
Labels
[Type] Bug An existing feature does not function as intended

Comments

@hanneslsm
Copy link

Description

When I am enqueuing a new font-family (e.g. via Create Block Theme), it the Appearance drop down should only let me select the available font weights.

Step-by-step reproduction instructions

  1. Add a new fonts, e.g. with Create Block Theme Plugin or just in the theme.js
  2. Go to Global Styles → Typography → Text
  3. The appearance drop down is full of options, even though I actually only can use some of the weights.

Screenshots, screen recording, code snippet

image image (interestingly, there seem to be another bug here - Barlow is a sans serif font)

Environment info

  • WP 6.2.2
  • GB 16.1.0

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

@cbirdsong
Copy link

@hanneslsm
Copy link
Author

Yes, thanks. Closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants