Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Buttons no longer use the Roboto / theme font #942

Closed
ghost opened this issue Jul 13, 2017 · 1 comment
Closed

Buttons no longer use the Roboto / theme font #942

ghost opened this issue Jul 13, 2017 · 1 comment
Assignees

Comments

@ghost
Copy link

ghost commented Jul 13, 2017

What MDC-Web Version are you using?

Using material/button 0.3.9

What browser(s) is this bug affecting?

Chrome 59.0.3071.115 / Firefox 54.0.1

What OS are you using?

Windows 10

What are the steps to reproduce the bug?

Compile the mdc-button.scss file.

What is the expected behavior?

Buttons styled with .mdc-button should use the Roboto font.

What is the actual behavior?

Button elements switch back to a sans-serif font if using normalize.css, or Arial if not.

Any other information you believe would be useful?

It looks like in PR #871 the dependency on mdc-typography was removed, but now normalize.css and/or the browser default styles have more specific rules for button elements that changes the font-family. Links with the .mdc-button class still get the correct font, because they inherit from body. You can see this in the components catalog: https://material-components-web.appspot.com/button.html

For now, adding a typography class like .mdc-typography--body1 will fix the issue, but it would be nice to have the old behaviour where buttons use the Roboto / theme font by default.

@lynnmercier lynnmercier self-assigned this Jul 13, 2017
@lynnmercier
Copy link
Contributor

Definitely looks like a bug. Thanks for filing this!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant