-
Notifications
You must be signed in to change notification settings - Fork 646
Add muted prop to Link. #567
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
Conversation
|
This pull request is automatically deployed with Now. Latest deployment for this branch: https://primer-components-git-muted-link.primer.now.sh |
| @@ -1,4 +1,3 @@ | |||
| import loadable from '@loadable/component' | |||
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.
Fixes a lint warning
| appearance: 'none' | ||
| } | ||
|
|
||
| const hoverColor = system({ |
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'm not really sure what this was doing. I couldn't find any color emitted for :hover on the links. It seems like for normal links the color is the same on hover, but if this needs to be added back for another reason, let me know!
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 adds a custom styled system prop to the component so that users of the component can configure what color the links should be on hover. I think we should put this back in - there were a few places where we were changing the hover color intentionally - I believe the primer.style site still uses it!
emplums
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.
Just made one suggestion otherwise this looks good!
Co-Authored-By: Emily <emplums@github.com>
emplums
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.
This is good to go! If you can just bump the version we can merge & release :)
Updated
Linkto accept amutedprop to achieve the styles found here: https://primer.style/css/utilities/colors#link-colorsCloses #561