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

Feat: Display only the weights that are available for the selected font #3277

Merged
merged 4 commits into from
Jan 6, 2022

Conversation

arinaturcu
Copy link
Contributor

@arinaturcu arinaturcu commented Dec 20, 2021

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:

    1. Buttons -> Button Text
    2. Form Fields -> Input Text and Form Labels
    3. Typography -> General
    4. Typography -> Blog -> Blog Archive -> Post Excerpt and Post Meta
    5. Typography -> Blog -> Single Post -> Post Meta
  • And the following for the heading font family:

    1. Typography -> Headings
    2. Typography -> Blog -> Blog Archive -> Post Title
    3. Typography -> Blog -> Single Post -> Post Title and Comments Reply Title

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.

@github-actions
Copy link

github-actions bot commented Dec 20, 2021

Plugin build for 0cdf74e is ready 🛎️!

@arinaturcu arinaturcu requested a review from abaicus December 20, 2021 14:03
Copy link
Collaborator

@abaicus abaicus left a 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.

Comment on lines 295 to 297
$heading_font_family = get_theme_mod( 'neve_headings_font_family', '' );
$body_font_family = get_theme_mod( 'neve_body_font_family', '' );

Copy link
Collaborator

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 🦭

@arinaturcu
Copy link
Contributor Author

Thank you for the review @abaicus 🚀 Yes, I forgot those variables 😅 Hope everything is good now. I will move this to the QA column.

@irinelenache
Copy link
Contributor

@arinaturcu Tested and didn't find any problem 🚀 Will move it to Ready to merge 👍

@cristian-ungureanu cristian-ungureanu merged commit b1a7918 into development Jan 6, 2022
@cristian-ungureanu cristian-ungureanu deleted the feat/available-weights branch January 6, 2022 09:57
@pirate-bot
Copy link
Collaborator

🎉 This PR is included in version 3.1.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@pirate-bot pirate-bot added the released Indicate that an issue has been resolved and released in a particular version of the product. label Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Indicate that an issue has been resolved and released in a particular version of the product.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants