question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect button and toolbar font weight

See original GitHub issue

Bug report:

According to the Material Design Typography spec, buttons and the app bar should have medium font weights. However, if the correct Roboto fonts are included, they appear bold. This does not appear on the Angular Material site because the Roboto 500 font weight is not included.

What is the expected behavior?

The button and toolbar typography should have a font weight of 400.

title with medium font weight

button with medium font weight

What is the current behavior?

The button and toolbar font weight is set to 500

title with bold font weight

button with bold font weight

What are the steps to reproduce?

  1. Create an app that uses the toolbar and buttons (see StackBlitz starter)
  2. Include the Roboto font weights in index.html <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">

What is the use-case or motivation for changing an existing behavior?

To align with material spec.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

angular: 5.0.0 material: 5.0.0

Is there anything else we should know?

Downstream issue Teradata/covalent#1012

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
andrewseguincommented, Dec 12, 2017

Apologies - read the thread incorrectly, re-opening for investigation

1reaction
kyleledbettercommented, Dec 12, 2017

@andrewseguin I see you closed the issue, but the official Material Design site and Polymer paper toolbar use font-weight:400 for toolbars

https://material.io/guidelines/components/toolbars.html image

https://www.webcomponents.org/element/PolymerElements/paper-toolbar/demo/demo/index.html image

Are those two wrong?

Also, the Angular Material site isn’t even loading the 500 weight, it uses <link href="https://fonts.googleapis.com/css?family=Roboto|Roboto+Mono:300" rel="stylesheet"> which has the appearance of 400 image

Is that wrong as well?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Incorrect button and toolbar font weight · Issue #8895 - GitHub
Incorrect button and toolbar font weight #8895 ... The button and toolbar typography should have a font weight of 400.
Read more >
Appbar color, toolbar color, text, font and buttons are not ...
You set button text color under AppBarTheme not in textTheme which you refer in your FlatButton . This may fix your problem.
Read more >
Firefox 90.0.1: Increase just toolbar and tab fonts?
Got my menu bar's fonts just right, but the fonts on the bookmarks, address toolbar and tabs need to be made larger.
Read more >
Make the text bold - Microsoft Support
Move your pointer to the Mini toolbar above your selection and click Bold Bold icon . Click Bold Bold icon in the Font...
Read more >
The font is incorrect in a merged letter when using Write a ...
Change the document style to Normal: In Microsoft Word, highlight the text to change. On the menu bar, select Format, Styles and Formatting....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found