bug(Material): theme-overrrides typography not working #31191
Labels
area: theming
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Uh oh!
There was an error while loading. Please reload this page.
Is this a regression?
The previous version in which this bug was not present was
No response
Description
I am trying to override my theme variables:
and the label-large does not get changed.
When I look at the generated styles:
they dont match my label-large overrides.
I can't provide a map like this either:
Reproduction
I tried creating a stackblitz but the starter is not using SCSS and stackblitz now turned into this new system Bolt. I tried creating an app but it took ages and it broke.
I hope my issue can just b traced by looking at the supported theme-overrides
Looking at the file _m3-tokes.sss
I see
When I use
label-large-size: 1.25,
in my override, it works. But thelabel-large: 600 1.25rem/1.5rem "Inter Tight",
doesnt work.Expected Behavior
apply label-large and other overrides
Actual Behavior
Some default value is used unless I specifically mention each font property separately for the button:
.mat-mdc-unelevated-button {
transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
height: var(--mdc-filled-button-container-height, 40px);
font-family: var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));
font-size: var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size)); <=== --mat-sys-label-large-size would be 0.875rem
letter-spacing: var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));
text-transform: var(--mdc-filled-button-label-text-transform);
font-weight: var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));
padding: 0 var(--mat-filled-button-horizontal-padding, 24px);
}
Environment
The text was updated successfully, but these errors were encountered: