Skip to content
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

Add an action button format #2824

Closed
jankeromnes opened this issue Jan 21, 2019 · 7 comments
Closed

Add an action button format #2824

jankeromnes opened this issue Jan 21, 2019 · 7 comments
Labels
npm-package Badge generation and badge templates

Comments

@jankeromnes
Copy link
Contributor

📋 Description

Idea from https://github.com/badges/shields/pull/2783/files#r248766176:

I could also see adding an action button format to Shields if there's interest. Here's some inspiration of one that I think is done well: https://devcenter.heroku.com/articles/heroku-button.

It may be useful to add a new "action button" format to Shields.io, for SVG buttons that don't show or link to the status of something, but rather offer to trigger some action.

Here are few third-party "action button" examples:

Deploy to Heroku

Open in Gitpod

@paulmelnikow
Copy link
Member

Our badges were designed to show status. When they are used to invite an action I feel like the wording and message become at odds with the design:



So yea, I think an action format for the static badge would be a great addition to the community. We could recommend using it when there is no meaningful status to show, and the only purpose of the badge is to initiate some action.

@paulmelnikow paulmelnikow added the npm-package Badge generation and badge templates label Jan 21, 2019
@jankeromnes
Copy link
Contributor Author

Another example that could be great as an action button:

back on open collective

@paulmelnikow
Copy link
Member

It's true, though the status badges make sense:

@chris48s
Copy link
Member

You can get pretty close to this.. if you really want to make it with shields:

https://img.shields.io/badge/Deploy%20to%20Heroku-purple.svg?logo=heroku&logoColor=white&style=for-the-badge

You could supply a custom logo with base64 as well, if you wanted.. https://github.com/badges/shields/blob/master/CONTRIBUTING.md#logos I'm not sure there is a strong case to add a special style for this.

@RedSparr0w
Copy link
Member

The standard shields badge can also be enlarged like so to increase the call to action feel:

<img src="https://img.shields.io/:Deploy-to%20Heroku-7673C0.svg?logo=heroku&logoColor=whitesmoke" height="30px" />
<img src="https://img.shields.io/badge/Deploy%20to%20Heroku-7673C0.svg?style=flat&logoWidth=14&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL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OC45NjMtNS4xNzVhNy42NTIgNy42NTIgMCAwIDAgMy44MTUtNi42MDhWMTUuMTgxYTcuNjUzIDcuNjUzIDAgMCAwLTMuODE1LTYuNjA4Ij48L3BhdGg+PC9zdmc+" height="30px" />

@paulmelnikow
Copy link
Member

The for-the-badge one looks decent though I think with the rounded ones it's clearer it's an action button. I think changing the left and right text color is helpful. I also think it looks better without the text shadow, and with a little more whitespace.

@chris48s
Copy link
Member

I think the conclusion of this was that these can already be created (with a bit of acrobatics) and over the last year or so, we've headed in the direction of removing some of the more esoteric template styles (2x popouts) and resisted adding more (e.g: the 'pill' style).
Its unlikely that we will do explicitly add another template to directly support this so I'm going to close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
npm-package Badge generation and badge templates
Projects
None yet
Development

No branches or pull requests

4 participants