-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
fix: support logoColor to shield icons. #8263
Conversation
|
I haven't been massively following all of the discussion in #7684 but I think I'd be fine with this as a solution: Seems like a reasonable way to reduce our support burden without taking on much additional complexity (which are really the 2 things I think we want to optimise for here). The one issue is |
IMO this isn't directly related to #7684 and the fundamental question of whether users still want the custom logos. I view this as simply adding new functionality to Shields to give a minor assist to users that want to use the SI version instead of one of the corresponding ten custom logos we have, without having to base64 encode the SI icon themselves to be used with There's also the potential for a small slice of our existing users to be impacted by a change like this, if they happen to have a |
Yeah - sorry. I think @regseb 's description:
is better.
Agreed. We could. Tbh though, as much as I'd like to bin them all and simplify things, I think #7684 tells us there isn't really a clear consensus for it. Given the point we're starting from, It seems like merging some variation of this solution (accepting it probably needs an additional special-case for the travis logo) would:
which seems like a pretty decent set of tradeoffs to me, all things considered. |
I think I largely agree, though do you think it'd be better to shift the discussion over to #6208 or to at least recap? Both so that those involved/subscribed to that convo can see this articulated position and for posterity so that thread will contain all relevant parts? |
@chris48s @calebcartwright Is there anything I should do to advance this pull request? |
I think the thing that stalled this is not "the code is bad and it needs changes", its more "do we agree this idea is the right solution?". Personally, I think yes it is. @calebcartwright - I'm going to invoke your suggestion about making decisions here and say: If you want to say "no its not", object in the next week. @regseb - In terms of the code, the one thing we'd need to do is add a special case to fix travis. This one breaks because our custom logo is @SnoozeThis wait 7 days |
(https://snoozeth.is/bRTxKqHPz6o) I will wait until Tue, 29 Nov 2022 16:50:08 UTC and then add a comment. |
I handled the Travis case. |
Agreed. Hopefully already evident from the above thread, but I'm not personally going to object. I do think the code will need another pass through (and I can't promise I'll have a chance to do so particularly given the holiday this week in the US), and would also need some accompanying items e.g. solid documentation, both in readme docs and on the site, and a communication plan |
The code is fine so far and I'm happy to review any further commits. Documentation is a good shout - thanks 👍 At the moment we don't mention anything about We do need to update shields/frontend/components/usage.tsx Lines 362 to 372 in c5476b4
and shields/frontend/pages/endpoint.tsx Lines 210 to 214 in c5476b4
Also the comment in shields/core/base-service/coalesce-badge.js Lines 9 to 34 in c5476b4
could do with an update. In terms of communicating the change, I think posting a comment in the various linked issues when we merge this and close them will be fine. #7684 is already pinned and it can stay pinned. I've not drafted a post yet, but I'm happy to cover that. |
I have updated the documentation. English is not my first language, so I'm open to any changes. |
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.
Going to merge this with a 1 word tweak to the docs. I'll update the issue threads once I've deployed
Resolved. |
This pull request fixes #6208 (and its duplicates: #7576, #8139, #8248) and finds a compromise for Simple Icons or custom Shields logos? #7684.
logoColor
query parameter: display custom Shields logo multiple colors;logoColor
query parameter: display Simple Icon by changing the color.If you want:
https://img.shields.io/badge/shields-gitlab-blue?logo=gitlab
https://img.shields.io/badge/shields-gitlab-blue?logo=gitlab&logoColor=FC6D26
https://img.shields.io/badge/shields-gitlab-blue?logo=gitlab&logoColor=white
There is one exception for the Dependabot logo. The custom Shields logo version is monochrome and its color is customizable. With
logoColor
query parameter, it is the custom Shields logo that is displayed by changing its color.