File tree 4 files changed +18
-6
lines changed
4 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ $candy-app-theme: mat.define-light-theme((
29
29
@include experimental .column-resize-theme ($candy-app-theme );
30
30
@include experimental .popover-edit-theme ($candy-app-theme );
31
31
32
+ @include mat .legacy-typography-hierarchy ($candy-app-theme , ' .mat-legacy-typography' );
33
+ @include mat .typography-hierarchy ($candy-app-theme );
34
+
32
35
.demo-strong-focus {
33
36
// Note: we can theme the indicators directly through `strong-focus-indicators` as well.
34
37
// Use the theme so we have some coverage over the entire API surface.
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ ng_module(
10
10
":typography_demo_scss" ,
11
11
],
12
12
deps = [
13
+ "//src/material/checkbox" ,
14
+ "@npm//@angular/forms" ,
13
15
],
14
16
)
15
17
Original file line number Diff line number Diff line change
1
+ < mat-checkbox [(ngModel)] ="isLegacy "> Is Legacy</ mat-checkbox >
2
+
1
3
<!-- via https://en.wikipedia.org/wiki/Pangram -->
2
- < div class =" mat-typography ">
3
- < h1 class =" mat-display-4 "> How vexingly quick daft zebras jump!</ h1 >
4
- < h1 class =" mat-display-3 "> The wizard quickly jinxed the gnomes before they vaporized.</ h1 >
5
- < h1 class =" mat-display-2 "> The quick brown fox jumps over the lazy dog.</ h1 >
6
- < h1 class =" mat-display-1 "> Grumpy wizards make toxic brew for the evil queen and jack.</ h1 >
4
+ < div [ class] =" isLegacy ? ' mat-legacy- typography' : 'mat-typography' ">
5
+ < h1 [ class] =" isLegacy ? ' mat-display-4' : 'mat-headline-1' "> How vexingly quick daft zebras jump!</ h1 >
6
+ < h1 [ class] =" isLegacy ? ' mat-display-3' : 'mat-headline-2' "> The wizard quickly jinxed the gnomes before they vaporized.</ h1 >
7
+ < h1 [ class] =" isLegacy ? ' mat-display-2' : 'mat-headline-3' "> The quick brown fox jumps over the lazy dog.</ h1 >
8
+ < h1 [ class] =" isLegacy ? ' mat-display-1' : 'mat-headline-4' "> Grumpy wizards make toxic brew for the evil queen and jack.</ h1 >
7
9
< h1 > Jackdaws love my big sphinx of quartz.</ h1 >
8
10
< h2 > The five boxing wizards jump quickly.</ h2 >
9
11
< h3 > Pack my box with five dozen liquor jugs.</ h3 >
Original file line number Diff line number Diff line change 7
7
*/
8
8
9
9
import { Component } from '@angular/core' ;
10
+ import { MatCheckboxModule } from '@angular/material/checkbox' ;
11
+ import { FormsModule } from '@angular/forms' ;
10
12
11
13
@Component ( {
12
14
selector : 'typography-demo' ,
13
15
templateUrl : 'typography-demo.html' ,
14
16
styleUrls : [ 'typography-demo.css' ] ,
17
+ imports : [ MatCheckboxModule , FormsModule ] ,
15
18
standalone : true ,
16
19
} )
17
- export class TypographyDemo { }
20
+ export class TypographyDemo {
21
+ isLegacy = false ;
22
+ }
You can’t perform that action at this time.
0 commit comments