Skip to content

bug (Angular Material): mat.define-typography-config $input and $title arguments have been removed #26300

Open
@Robw94

Description

@Robw94

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

v14

Description

Upgrading from angular 14 to 15 one of the templates we used had the mixin function

mat.define-typography-config( $font-family: $treo-font-sans, $title: mat.define-typography-level(1.25rem, 2rem, 600), $body-2: mat.define-typography-level(0.875rem, 1.5rem, 600), $button: mat.define-typography-level(0.875rem, 0.875rem, 500), $input: mat.define-typography-level(0.875rem, 1.2857142857, 400) // line-height: 20px )

Since angular material 15 the $input and $title arguements have been removed.
SassError: No argument named $input.

Is there a replacement for this? as the buttons and form fields on the website complete change when I remove these arguments

Reproduction

Steps to reproduce:

  1. Upgrade to Angular 15 from 14 having $title and $input defined in typography

Expected Behavior

image

Actual Behavior

image

Environment

@angular-devkit/architect 0.1500.4
@angular-devkit/build-angular 15.0.4
@angular-devkit/core 15.0.4
@angular-devkit/schematics 15.0.4
@angular/cdk 15.0.3
@angular/material 15.0.3
@angular/material-moment-adapter 15.0.3
@schematics/angular 15.0.4
rxjs 7.8.0
typescript 4.8.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2The issue is important to a large percentage of users, with a workaroundarea: ng-updateIssues related to `ng-update` integration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions