@@ -285,7 +285,7 @@ describe('v15 legacy components migration', () => {
285
285
old : [
286
286
`@use '@angular/material' as mat;` ,
287
287
`@include mat.core();` ,
288
- `@include mat.core(mat.define-typography-config());` ,
288
+ `@include mat.core(mat.define-typography-config(() ));` ,
289
289
`@include mat.core-theme(())` ,
290
290
] ,
291
291
new : [
@@ -294,11 +294,19 @@ describe('v15 legacy components migration', () => {
294
294
`// Instead an explicit typography include has been automatically added here.` ,
295
295
`// If you add typography styles elsewhere, you may want to remove this.` ,
296
296
`@include mat.all-legacy-component-typographies();` ,
297
+ `// TODO(v15): If you want to keep just the typography hierarchy styles,` ,
298
+ `// but not the component default typography styles, delete the line above and keep the following.` ,
299
+ `// If you keep the above line or do not want the hierarchy styles, you can delete this line.` ,
300
+ `@include mat.legacy-typography-hierarchy(mat.define-legacy-typography-config());` ,
297
301
`@include mat.legacy-core();` ,
298
302
`// TODO(v15): As of v15 mat.legacy-core no longer includes default typography styles.` ,
299
303
`// Instead an explicit typography include has been automatically added here.` ,
300
304
`// If you add typography styles elsewhere, you may want to remove this.` ,
301
- `@include mat.all-legacy-component-typographies(mat.define-legacy-typography-config());` ,
305
+ `@include mat.all-legacy-component-typographies(mat.define-legacy-typography-config(()));` ,
306
+ `// TODO(v15): If you want to keep just the typography hierarchy styles,` ,
307
+ `// but not the component default typography styles, delete the line above and keep the following.` ,
308
+ `// If you keep the above line or do not want the hierarchy styles, you can delete this line.` ,
309
+ `@include mat.legacy-typography-hierarchy(mat.define-legacy-typography-config(()));` ,
302
310
`@include mat.legacy-core();` ,
303
311
`@include mat.legacy-core-theme(())` ,
304
312
] ,
0 commit comments