-
Notifications
You must be signed in to change notification settings - Fork 84
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
Feat: Display only the weights that are available for the selected font #3277
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arinaturcu This looks great! 🚀 I just found some stray variables 👀
After you remove those we can move this to QA so we can start testing.
$heading_font_family = get_theme_mod( 'neve_headings_font_family', '' ); | ||
$body_font_family = get_theme_mod( 'neve_body_font_family', '' ); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can remove these variables 🦭
Thank you for the review @abaicus 🚀 Yes, I forgot those variables 😅 Hope everything is good now. I will move this to the QA column. |
@arinaturcu Tested and didn't find any problem 🚀 Will move it to Ready to merge 👍 |
🎉 This PR is included in version 3.1.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
When selecting the font weight, only the ones that are supported for the used font family are displayed.
Will affect visual aspect of the product
NO
Test instructions
The following controls should display the available weights for the selected body font family:
And the following for the heading font family:
The HFG components that use a font family selector should also be checked: menus, custom html, contact, and copyright.
Let me know if I missed any font-related control.
Closes #2631.