-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Bundled Theme: Fix social links text decoration #7841
base: trunk
Are you sure you want to change the base?
Bundled Theme: Fix social links text decoration #7841
Conversation
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 Core Committers: Use this line as a base for the props when committing in SVN:
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
Hello @SainathPoojary |
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.
Please update the comment, and consider reducing the specificity.
If you could run build
to update the stylesheets in this PR, that would help people testing it (and would help pass GitHub actions).
@@ -950,6 +950,11 @@ | |||
} | |||
} | |||
|
|||
//! wp-block-social-links |
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.
//! wp-block-social-links | |
//! Social Icons |
Use the block name for the comment.
@@ -950,6 +950,11 @@ | |||
} | |||
} | |||
|
|||
//! wp-block-social-links | |||
.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor { |
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.
This creates a high specificity with six classes:
.entry .entry-content .wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor
An element selector (combined with .entry .entry-content
) would be enough to override the underline in the post content:
.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor { | |
a:where(.wp-block-social-link-anchor) { |
Adds missing text decoration rule to the wp-block-social-links to ensure that social link anchors matches editor style.
e209bf6
to
b6bdf61
Compare
Hey @sabernhardt, I have implemented the requested changes and rebased the branch. After rebasing, I noticed that there’s some extra margin on the social icon button. Should I open a issue for it? ![]() Additionally, while running npm install, I encountered a deprecation issue related to node-sass. If this needs to be addressed, I’d be happy to work on it. ![]() |
The separate Social Icons block margin issue should be fixed in Gutenberg 20.4. I have had |
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.
Thanks!
These screenshots are all with the patch.
Front end, in the post content, in both language directions:
The links were not underlined in the editor or in the widget context before the patch, but they still do not have the underline with the patch.
Post editor:
Widget editor:
Widget on the front end:
This pull request fixes an issue in the Twenty Nineteen theme where social icons in the wp-block-social-links block appear without underlines in the editor but are incorrectly displayed with underlines on the frontend. This PR resolves the issue by adding a text-decoration: none; rule for anchor tags in the frontend, ensuring consistent styling with the editor.
Trac ticket: #61904
Before:
After: