badges / badges/shields

Removal of logoWidth parameter means wide custom logos no longer display nicely

Open
#11,092 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
27.2k
Forks
5.6k
Avg merge
1d 8h
Merged PRs (30d)
46

Description

### Are you experiencing an issue with...

shields.io

### 🐞 Description

My organisation has a very wide logo and so we were using `logoWidth` to make the logo wider (and so readable). Removal of that parameter means that we can no longer customise the size. One solution might be to support `logoSize=auto` for custom images (which is really the functionality we wanted in the first place).

### 🔗 Link to the badge

![](https://shields.io/badge/some_label-lightgrey.svg?logoSize=auto&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCA4IiBmaWxsPSJjdXJyZW50Q29sb3IiPjxwYXRoIGQ9Ik0xMTIgMHYzMkg4MFYwaDMyWk03MiAwdjMySDQwVjBoMzJaTTMyIDB2MzJIMFYwaDMyWm02NSA3aC0zbC0zIDItMiAzLTEgNCAxIDQgMSAzIDMgMmg0YTEzIDEzIDAgMCAwIDYtMXYtNGwtNSAyLTMtMS0yLTItMS0zIDEtMyAyLTIgMy0xYTkgOSAwIDAgMSA1IDJWOGwtMy0xaC0zWk01NiA3aC03djE4aDdsNC0xIDItMSAxLTMtMS0zLTItMiAxLTEgMS0yLTItNC00LTFaTTE2IDdIOXYxOGg3bDQtMSAyLTEgMS0zLTEtMy0yLTIgMS0xIDEtMi0yLTQtNC0xWm00MCAxMGMyIDAgMyAxIDMgM2wtMSAxLTIgMWgtM3YtNVptLTQwIDBjMiAwIDMgMSAzIDNsLTEgMS0yIDFoLTN2LTVabTM5LTdjMiAwIDMgMSAzIDJ2MmgtNXYtNFptLTQwIDBjMiAwIDMgMSAzIDJ2MmgtNXYtNFoiIHRyYW5zZm9ybT0ic2NhbGUoMC4yMSkiLz48L3N2Zz4=)

### 💡 Possible Solution

_No response_

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by tracing the logoSize and removed logoWidth parameters from the linked Shields badge URL through the badge-rendering entry points. Done means wide custom logos display readably when auto sizing is requested, with the existing behavior for other logos preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.