-
Notifications
You must be signed in to change notification settings - Fork 89
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
HD Button vertical alignment on Windows Firefox #2350
Comments
Bug ranking score: 51 (using rubric v3) Priority: high
|
Added community label as this has been raised on behalf of Markets team. |
I'm not sure this is a bug that we can fix. The component itself isn't built incorrectly, this is caused by a quirk with our design choices:
No prizes for spotting the odd one out :P Because of the odd and even numbers the font is forced to be off by 1px in a direction on low res screens or where subpixel rendering is disabled. I'm not sure if there's a way we can force it to work but the same issue is present in UITK |
@joshwooding @origami-z presumably this is going to be the same problem across the board? Dropdown, Input, List item, Banner... i.e., any component with an even height using HD/Action or Body type font styles? |
Yeah, the problem will show up in multiple places |
Do we have rough numbers for # low res monitor users/ # people affected? We could consider a 1px increase in font size at HD but that'll 'break' the system and would be good to know how critical this is before making permanent changes. |
I'd guess 99% users are not using Retina display. This appears to be a problem specifically on Windows Firefox. Using Firefox on Mac on the same monitor doesn't have the problem. It could also be a Firefox version problem? I don't have way to validate yet. |
So how do we proceed with this? Is it possible for us to understand the impact? Do we assume it's going to be a wide reaching issue that needs a resolution? Is there definitely no technical fix? |
Looks like real browser differences... https://stackoverflow.com/a/5883303 I think this matters the most on standalone text in an element (e.g. button)..? |
There is still an underlying issue, but I can't reproduce this in v115.9esr so its impact is probably low now. |
Package name(s)
Core (@salt-ds/core)
Package version(s)
1.8.1
Description
Text is not aligned to the center vertically in HD Button
Steps to reproduce
Windows Firefox 102.11.0esr (32-bit), load https://storybook.saltdesignsystem.com/?path=/docs/documentation-core-button--page
Expected behavior
Text is aligned in center
Operating system
Browser
Are you a JPMorgan Chase & Co. employee?
The text was updated successfully, but these errors were encountered: