-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Match front-page link style to admin styles #70600
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
Match front-page link style to admin styles #70600
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
t-hamano
left a comment
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 for the PR!
What I'm proposing in #70600 is not to change the style of the ExternalLink component itself. The component is used in various places, so changing the style of the component itself would cause problems in various places.
For the same reason, we cannot delete rel="external". If this attribute is inappropriate in the post sidebar, that needs to be discussed in a separate issue.
What I'm proposing is to override the style of this component only in the post sidebar.
If there's anything you don't understand, please feel free to ask.
|
@t-hamano I moved the styles to only apply the front-page link also did refactors to React logic |
t-hamano
left a comment
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.
* Add color styles to link. Add :hover and :focus styles by copying button component * Match paddings of button component * Remove external from rel attribute * Conditionally add exteral rel if the href is pointing to external url * Revert style changes to ExternalLink component * Apply style changes only to front-page-link and include theme-variables * Using css variables * Remove import * Reverting changes Co-authored-by: n2erjo00 <[email protected]> Co-authored-by: t-hamano <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: coder-rancho <[email protected]> Co-authored-by: carolinan <[email protected]> Co-authored-by: joedolson <[email protected]>


What?
Closes #69577
External component link styling do not match the styles of other links. This PR remedies that by adding styling to link
Why?
Makes UI look more consistent
Component also had
rel="external…which is not correct since link refers to page of site so this PR also removes the that attribute valueHow?
External link component had very little styling. This PR adds enough styling to the component to make look and feel like component-button component.
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast