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
Your guide https://material.angular.dev/guide/theming#getting-started suggests adding @mat.theme right under html element. While your examples on https://material.angular.dev/components/categories pages have @mat.theme under body element.
This causes significant difference: placing @mat.theme under html adds 13px font-size (by default it is 16px) that makes text labels tangibly smaller (since body text is set as 0.875rem).
Can you provide more info about how the font size is changing between the two? I couldnt find a difference on the docs site when changing html to body. The mat.theme mixin is just adding variables - I don't follow how it is changing the font size
Documentation Feedback
Your guide https://material.angular.dev/guide/theming#getting-started suggests adding
@mat.theme
right underhtml
element. While your examples onhttps://material.angular.dev/components/categories
pages have@mat.theme
underbody
element.This causes significant difference: placing
@mat.theme
underhtml
adds13px
font-size (by default it is 16px) that makes text labels tangibly smaller (since body text is set as 0.875rem).Fonts in your https://material.angular.dev/components/categories pages looks way larger than if you place
@mat.theme
underhtml
element.Please resolve the confusion (fix documentation guide or the examples), what is the correct place for
@mat.theme
:html
orbody
.Affected documentation page
https://material.angular.dev/guide/theming#getting-started
The text was updated successfully, but these errors were encountered: