You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code was refactored recently and hasn't yet been merged to master. I don't think that will fix the problem though if anyone would like to work on this, it should be on the v3-dev branch.
Happy to accept contributions (on that branch, for the time being) which bring our badges more inline with the design at https://forthebadge.com/.
…rrect font (#5696)
Even before #2311, Shields has measured all badge text using 11px Verdana, which is the correct font for plastic, flat, and flat-square.
However the for-the-badge style uses 10px Verdana and bold 10px Verdana, and the social badge uses bold 11px _Helvetica_. This causes these badges to be wider or narrower than they should be, and the text to be stretched accordingly.
Since the for-the-badge style relies on synthetic letter spacing (we just multiply the computed length in code) there is room to massage this further. Our test badges all look as good or better than before, so I think it should not block merging this, however we might need to get it right before the downstream problem in squint goes away. (There's also #4691 which this doesn't attempt to address.)
Fixes#4275
Are you experiencing an issue with...
🪲 Description
🔗 Link to the badge
The size of the for-the-badge style is not the same size as for-the-badge itself. The ratio is different.
Compare with
💡 Possible Solution
The text was updated successfully, but these errors were encountered: