WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.53k stars 4.21k forks source link

Social Links: Fix font family and weight inconsistency in editor #67204

Open SainathPoojary opened 17 hours ago

SainathPoojary commented 17 hours ago

Issue: #46778

What?

Added font-weight: inherit; and font-family: inherit; to the .wp-block-social-link-anchor class in the editor to ensure consistent font styling with the frontend.

Why?

The inconsistency was caused because:

This change ensures uniform font styling for social links across both the editor and frontend.

How?

Updated the .wp-block-social-link-anchor class in the editor with the following CSS:

font-weight: inherit;  
font-family: inherit;  

Testing Instructions

  1. Open the editor and add a social links block.
  2. Add a few social links and check the font weight and font family.
  3. Save and view the post on the frontend.
  4. Compare the font styling (weight and family) between the editor and frontend to ensure consistency.

Screenshots or screencast

Before:

Chrome:

Editor Frontend
image image

Firefox:

Editor Frontend
image image

After fix:

Chrome:

Editor Frontend
image image

Firefox:

Editor Frontend
image image
github-actions[bot] commented 17 hours ago

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: SainathPoojary <sainathpoojary@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

github-actions[bot] commented 17 hours ago

:wave: Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @SainathPoojary! In case you missed it, we'd love to have you join us in our Slack community.

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