Skip to content

Commit 602a93b

Browse files
committed
chore: add comments about letter spacing
1 parent 3b4a9ff commit 602a93b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/lib/core/typography/_typography.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,25 @@
4646
@mixin mat-base-typography($config, $selector: '.mat-typography') {
4747
.mat-h0, .mat-hero-header {
4848
@include mat-typography-level-to-styles($config, display-4);
49+
50+
// Note: The spec doesn't mention letter spacing. The value comes from
51+
// eyeballing it until it looked exactly like the spec examples.
4952
letter-spacing: -0.05em;
5053
}
5154

5255
.mat-h1, #{$selector} h1 {
5356
@include mat-typography-level-to-styles($config, display-3);
57+
58+
// Note: The spec doesn't mention letter spacing. The value comes from
59+
// eyeballing it until it looked exactly like the spec examples.
5460
letter-spacing: -0.02em;
5561
}
5662

5763
.mat-h2, #{$selector} h2 {
58-
@include mat-typography-level-to-styles($config, display-2);
64+
@include mat-typography-level-to-styles($config, display-2)
65+
66+
// Note: The spec doesn't mention letter spacing. The value comes from
67+
// eyeballing it until it looked exactly like the spec examples.;
5968
letter-spacing: -0.005em;
6069
}
6170

0 commit comments

Comments
 (0)