-
-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Button element 'font-family' diverges from a[role=button] or a[class=button] on Chrome #36
Comments
🤔 |
Confirmed from Chromium on Linux: Chromium does not forward
I would rather suggest to use Alternate solution:Just include normalize.css ;) <link rel="stylesheet" href="http://unpkg.com/normalize.css"> |
I see, can someone make a tested PR for this? |
I'm on it |
Ships in v0.7.0 |
not sure if this is related to the bug I am seeing in safari, but if you check the chota.css homepage and hover over the links that have button classes, the hover animation is broken. |
There's a bug when switching from a
<a>
element to a<button>
element caused by the button element not having font-family defined (defaults to Arial in my browser).Browser: Google Chrome v76.0.3809.100
OS: Windows 10 OS Version 1803
To reproduce you just have to compare css of an element of type:
With the same as a button:
The element's css has a 'user agent stylesheet' that defines its font as the following:
The element's css has its font defined at body normally, this is where the divergence comes from.
This can be even observed at this demo's link.
Proposed fix (also including font-size and letter-spacing, which is also necessary)
Disclaimer: I have not checked other browsers's behaviour.
The text was updated successfully, but these errors were encountered: