bug(mat-toolbar): mat-toolbar styles for elements like h1, h2, ... are not taking precedence over mat-typography #26261
Labels
area: material/toolbar
good first issue
This issue is a good place to start for first time contributors to the project
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Is this a regression?
The previous version in which this bug was not present was
No response
Description
When a header tag is used within mat-toolbar the stylings from the theme do not take precedence.
The default styles from mat-typography are still used. Therefore the margin is not reset to 0 and the font-size also differs.
Reproduction
https://stackblitz.com/edit/components-issue-t1dkvg
Steps to reproduce:
Expected Behavior
Specific styles from mat-toolbar for these elements should take precedence. e.g. margin should be 0.
Actual Behavior
Default mat-typography styles are used even though mat-toolbar would specify more accurate ones.
Environment
The text was updated successfully, but these errors were encountered: