-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Plugins: Add Action Links to Plugin Detail View #11718
Conversation
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.
Design looks good.
code looks good to me @roundhill but I haven't tested it yet a cursory search showed no conflicts with letting through the additional key |
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.
👍 on the design
Note: You can now test this with production Jetpack (4.7). I updated the testing instructions. |
{ ! isEmpty( actionLinks ) && | ||
<div className="plugin-meta__action-links"> | ||
{ Object.keys( actionLinks ).map( linkTitle => ( | ||
<Button compact icon href={ actionLinks[ linkTitle ] } target="_blank"> |
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 think we should add rel="noopener noreferrer"
here. See #7680.
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, I wasn't aware of that. Added in 5f046dd
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.
Tested it and it looks good to me. I've left a small comment about target="_blank"
, and I think this is good to after that is resolved.
Adds plugin
action links
buttons to the plugin detail view. The plugin developer adds these using the action link filter.To test
Screenshot:
Fixes #82