Skip to content

Commit 8ce4e46

Browse files
committed
feat: add emphasized typescale and fix letter-spacing spec bugs
Adds 15 *Emphasized entries per M3 Design Kit: Display/Headline/TitleLarge/Body use Medium (500), TitleMedium/TitleSmall/Label use Bold (700). Adds weightBold to ref.typeface. Fixes displayLarge letterSpacing (0 -> -0.25) and bodyLarge letterSpacing (0.15 -> 0.5).
1 parent 1f786b3 commit 8ce4e46

16 files changed

Lines changed: 635 additions & 87 deletions

File tree

src/components/__tests__/Appbar/__snapshots__/Appbar.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ exports[`Appbar does not pass any additional props to Searchbar 1`] = `
243243
"fontFamily": "System",
244244
"fontSize": 16,
245245
"fontWeight": "400",
246-
"letterSpacing": 0.15,
246+
"letterSpacing": 0.5,
247247
"lineHeight": 0,
248248
},
249249
{

src/components/__tests__/Checkbox/__snapshots__/CheckboxItem.test.tsx.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ exports[`can render leading checkbox control 1`] = `
155155
"fontFamily": "System",
156156
"fontSize": 16,
157157
"fontWeight": "400",
158-
"letterSpacing": 0.15,
158+
"letterSpacing": 0.5,
159159
"lineHeight": 24,
160160
},
161161
[
@@ -253,7 +253,7 @@ exports[`can render the Android checkbox on different platforms 1`] = `
253253
"fontFamily": "System",
254254
"fontSize": 16,
255255
"fontWeight": "400",
256-
"letterSpacing": 0.15,
256+
"letterSpacing": 0.5,
257257
"lineHeight": 24,
258258
},
259259
[
@@ -471,7 +471,7 @@ exports[`can render the iOS checkbox on different platforms 1`] = `
471471
"fontFamily": "System",
472472
"fontSize": 16,
473473
"fontWeight": "400",
474-
"letterSpacing": 0.15,
474+
"letterSpacing": 0.5,
475475
"lineHeight": 24,
476476
},
477477
[
@@ -652,7 +652,7 @@ exports[`renders unchecked 1`] = `
652652
"fontFamily": "System",
653653
"fontSize": 16,
654654
"fontWeight": "400",
655-
"letterSpacing": 0.15,
655+
"letterSpacing": 0.5,
656656
"lineHeight": 24,
657657
},
658658
[

src/components/__tests__/RadioButton/__snapshots__/RadioButtonItem.test.tsx.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ exports[`can render leading radio button control 1`] = `
153153
"fontFamily": "System",
154154
"fontSize": 16,
155155
"fontWeight": "400",
156-
"letterSpacing": 0.15,
156+
"letterSpacing": 0.5,
157157
"lineHeight": 24,
158158
},
159159
[
@@ -248,7 +248,7 @@ exports[`can render the Android radio button on different platforms 1`] = `
248248
"fontFamily": "System",
249249
"fontSize": 16,
250250
"fontWeight": "400",
251-
"letterSpacing": 0.15,
251+
"letterSpacing": 0.5,
252252
"lineHeight": 24,
253253
},
254254
[
@@ -400,7 +400,7 @@ exports[`can render the iOS radio button on different platforms 1`] = `
400400
"fontFamily": "System",
401401
"fontSize": 16,
402402
"fontWeight": "400",
403-
"letterSpacing": 0.15,
403+
"letterSpacing": 0.5,
404404
"lineHeight": 24,
405405
},
406406
[
@@ -578,7 +578,7 @@ exports[`renders unchecked 1`] = `
578578
"fontFamily": "System",
579579
"fontSize": 16,
580580
"fontWeight": "400",
581-
"letterSpacing": 0.15,
581+
"letterSpacing": 0.5,
582582
"lineHeight": 24,
583583
},
584584
[

src/components/__tests__/Typography/__snapshots__/Text.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ exports[`renders every variant of Text with children as content 1`] = `
1717
"fontFamily": "System",
1818
"fontSize": 57,
1919
"fontWeight": "400",
20-
"letterSpacing": 0,
20+
"letterSpacing": -0.25,
2121
"lineHeight": 64,
2222
},
2323
undefined,
@@ -242,7 +242,7 @@ exports[`renders every variant of Text with children as content 1`] = `
242242
"fontFamily": "System",
243243
"fontSize": 16,
244244
"fontWeight": "400",
245-
"letterSpacing": 0.15,
245+
"letterSpacing": 0.5,
246246
"lineHeight": 24,
247247
},
248248
undefined,

0 commit comments

Comments
 (0)