Skip to content

Commit 479435b

Browse files
committed
docs(upgrade-guide): correct snippet for MD2 typography
fixes #22914
1 parent ff6e4e4 commit 479435b

1 file changed

Lines changed: 64 additions & 64 deletions

File tree

packages/docs/src/pages/en/getting-started/typography-migration.md

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -278,69 +278,69 @@ $flat-typography: ();
278278
),
279279
),
280280

281-
$alert-title-font-size: tools.map-deep-get(.$typography, 'h6', 'size'),
282-
$alert-title-font-weight: tools.map-deep-get(.$typography, 'h6', 'weight'),
283-
$alert-title-letter-spacing: tools.map-deep-get(.$typography, 'h6', 'letter-spacing'),
284-
$banner-font-size: tools.map-deep-get(.$typography, 'body-2', 'size'),
285-
$banner-line-height: tools.map-deep-get(.$typography, 'subtitle-2', 'line-height'),
286-
$breadcrumbs-item-icon-font-size: tools.map-deep-get(.$typography, 'body-1', 'size'),
287-
$breadcrumbs-line-height: tools.map-deep-get(.$typography, 'subtitle-2', 'line-height'),
288-
$button-font-size: tools.map-deep-get(.$typography, 'button', 'size'),
289-
$button-font-weight: tools.map-deep-get(.$typography, 'button', 'weight'),
290-
$button-text-letter-spacing: tools.map-deep-get(.$typography, 'button', 'letter-spacing'),
291-
$button-text-transform: tools.map-deep-get(.$typography, 'button', 'text-transform'),
292-
$card-title-font-size: tools.map-deep-get(.$typography, 'h6', 'size'),
293-
$card-title-font-weight: tools.map-deep-get(.$typography, 'h6', 'weight'),
294-
$card-title-letter-spacing: tools.map-deep-get(.$typography, 'h6', 'letter-spacing'),
295-
$card-title-line-height: tools.map-deep-get(.$typography, 'h6', 'line-height'),
296-
$card-subtitle-font-size: tools.map-deep-get(.$typography, 'body-2', 'size'),
297-
$card-subtitle-font-weight: tools.map-deep-get(.$typography, 'body-2', 'weight'),
298-
$card-subtitle-letter-spacing: tools.map-deep-get(.$typography, 'body-2', 'letter-spacing'),
299-
$card-subtitle-line-height: tools.map-deep-get(.$typography, 'body-2', 'line-height'),
300-
$card-text-font-size: tools.map-deep-get(.$typography, 'body-2', 'size'),
301-
$card-text-font-weight: tools.map-deep-get(.$typography, 'body-2', 'weight'),
302-
$card-text-letter-spacing: tools.map-deep-get(.$typography, 'body-2', 'letter-spacing'),
303-
$card-text-line-height: tools.map-deep-get(.$typography, 'body-2', 'line-height'),
304-
$card-text-text-transform: tools.map-deep-get(.$typography, 'body-2', 'text-transform'),
305-
$chip-font-size: tools.map-deep-get(.$typography, "button", "size"),
306-
$dialog-card-text-letter-spacing: tools.map-deep-get(.$typography, 'body-1', 'letter-spacing'),
307-
$empty-state-headline-font-size: functions.map-deep-get(.$typography, 'h2', 'size'),
308-
$empty-state-headline-font-weight: functions.map-deep-get(.$typography, 'h2', 'weight'),
309-
$empty-state-headline-line-height: functions.map-deep-get(.$typography, 'h2', 'line-height'),
310-
$empty-state-headline-mobile-font-size: functions.map-deep-get(.$typography, 'h4', 'size'),
311-
$empty-state-text-font-size: functions.map-deep-get(.$typography, 'body-2', 'size'),
312-
$empty-state-text-font-weight: functions.map-deep-get(.$typography, 'body-2', 'weight'),
313-
$empty-state-text-line-height: functions.map-deep-get(.$typography, 'body-2', 'line-height'),
314-
$empty-state-title-font-size: functions.map-deep-get(.$typography, 'h6', 'size'),
315-
$empty-state-title-font-weight: functions.map-deep-get(.$typography, 'h6', 'weight'),
316-
$empty-state-title-line-height: functions.map-deep-get(.$typography, 'h6', 'line-height'),
317-
$fab-font-size: tools.map-deep-get(.$typography, 'button', 'size'),
318-
$fab-font-weight: tools.map-deep-get(.$typography, 'button', 'weight'),
319-
$input-font-size: tools.map-deep-get(.$typography, 'body-1', 'size'),
320-
$input-font-weight: tools.map-deep-get(.$typography, 'body-1', 'weight'),
321-
$list-item-nav-subtitle-font-weight: tools.map-deep-get(.$typography, 'body-2', 'weight'),
322-
$list-item-nav-subtitle-letter-spacing: tools.map-deep-get(.$typography, 'body-2', 'letter-spacing'),
323-
$list-item-subtitle-font-size: tools.map-deep-get(.$typography, 'body-2', 'size'),
324-
$list-item-subtitle-font-weight: tools.map-deep-get(.$typography, 'body-2', 'weight'),
325-
$list-item-subtitle-letter-spacing: tools.map-deep-get(.$typography, 'body-2', 'letter-spacing'),
326-
$list-item-title-font-size: tools.map-deep-get(.$typography, 'body-1', 'size'),
327-
$list-item-title-font-weight: tools.map-deep-get(.$typography, 'body-1', 'weight'),
328-
$list-item-title-letter-spacing: tools.map-deep-get(.$typography, 'subtitle-1', 'letter-spacing'),
329-
$list-item-title-line-height: tools.map-deep-get(.$typography, 'body-1', 'line-height'),
330-
$slider-thumb-label-font-size: tools.map-deep-get(.$typography, 'caption', 'size'),
331-
$snackbar-font-size: tools.map-deep-get(.$typography, 'body-2', 'size'),
332-
$snackbar-font-weight: tools.map-deep-get(.$typography, 'body-2', 'weight'),
333-
$snackbar-letter-spacing: tools.map-deep-get(.$typography, 'body-2', 'letter-spacing'),
334-
$snackbar-line-height: tools.map-deep-get(.$typography, 'body-2', 'line-height'),
335-
$system-bar-font-size: tools.map-deep-get(.$typography, 'caption', 'size'),
336-
$system-bar-font-weight: tools.map-deep-get(.$typography, 'caption', 'weight'),
337-
$system-bar-letter-spacing: tools.map-deep-get(.$typography, 'caption', 'letter-spacing'),
338-
$system-bar-line-height: tools.map-deep-get(.$typography, 'caption', 'line-height'),
339-
$system-bar-text-transform: tools.map-deep-get(.$typography, 'caption', 'text-transform'),
340-
$table-header-font-size: tools.map-deep-get(.$typography, 'caption', 'size'),
341-
$table-font-size: tools.map-deep-get(.$typography, 'body-2', 'size'),
342-
$table-row-font-size: tools.map-deep-get(.$typography, 'subtitle-2', 'size'),
343-
$icon-btn-font-size: tools.map-deep-get(.$typography, 'button', 'size'),
344-
$icon-btn-font-weight: tools.map-deep-get(.$typography, 'button', 'weight'),
281+
$alert-title-font-size: tools.map-deep-get($typography, 'h6', 'size'),
282+
$alert-title-font-weight: tools.map-deep-get($typography, 'h6', 'weight'),
283+
$alert-title-letter-spacing: tools.map-deep-get($typography, 'h6', 'letter-spacing'),
284+
$banner-font-size: tools.map-deep-get($typography, 'body-2', 'size'),
285+
$banner-line-height: tools.map-deep-get($typography, 'subtitle-2', 'line-height'),
286+
$breadcrumbs-item-icon-font-size: tools.map-deep-get($typography, 'body-1', 'size'),
287+
$breadcrumbs-line-height: tools.map-deep-get($typography, 'subtitle-2', 'line-height'),
288+
$button-font-size: tools.map-deep-get($typography, 'button', 'size'),
289+
$button-font-weight: tools.map-deep-get($typography, 'button', 'weight'),
290+
$button-text-letter-spacing: tools.map-deep-get($typography, 'button', 'letter-spacing'),
291+
$button-text-transform: tools.map-deep-get($typography, 'button', 'text-transform'),
292+
$card-title-font-size: tools.map-deep-get($typography, 'h6', 'size'),
293+
$card-title-font-weight: tools.map-deep-get($typography, 'h6', 'weight'),
294+
$card-title-letter-spacing: tools.map-deep-get($typography, 'h6', 'letter-spacing'),
295+
$card-title-line-height: tools.map-deep-get($typography, 'h6', 'line-height'),
296+
$card-subtitle-font-size: tools.map-deep-get($typography, 'body-2', 'size'),
297+
$card-subtitle-font-weight: tools.map-deep-get($typography, 'body-2', 'weight'),
298+
$card-subtitle-letter-spacing: tools.map-deep-get($typography, 'body-2', 'letter-spacing'),
299+
$card-subtitle-line-height: tools.map-deep-get($typography, 'body-2', 'line-height'),
300+
$card-text-font-size: tools.map-deep-get($typography, 'body-2', 'size'),
301+
$card-text-font-weight: tools.map-deep-get($typography, 'body-2', 'weight'),
302+
$card-text-letter-spacing: tools.map-deep-get($typography, 'body-2', 'letter-spacing'),
303+
$card-text-line-height: tools.map-deep-get($typography, 'body-2', 'line-height'),
304+
$card-text-text-transform: tools.map-deep-get($typography, 'body-2', 'text-transform'),
305+
$chip-font-size: tools.map-deep-get($typography, "button", "size"),
306+
$dialog-card-text-letter-spacing: tools.map-deep-get($typography, 'body-1', 'letter-spacing'),
307+
$empty-state-headline-font-size: functions.map-deep-get($typography, 'h2', 'size'),
308+
$empty-state-headline-font-weight: functions.map-deep-get($typography, 'h2', 'weight'),
309+
$empty-state-headline-line-height: functions.map-deep-get($typography, 'h2', 'line-height'),
310+
$empty-state-headline-mobile-font-size: functions.map-deep-get($typography, 'h4', 'size'),
311+
$empty-state-text-font-size: functions.map-deep-get($typography, 'body-2', 'size'),
312+
$empty-state-text-font-weight: functions.map-deep-get($typography, 'body-2', 'weight'),
313+
$empty-state-text-line-height: functions.map-deep-get($typography, 'body-2', 'line-height'),
314+
$empty-state-title-font-size: functions.map-deep-get($typography, 'h6', 'size'),
315+
$empty-state-title-font-weight: functions.map-deep-get($typography, 'h6', 'weight'),
316+
$empty-state-title-line-height: functions.map-deep-get($typography, 'h6', 'line-height'),
317+
$fab-font-size: tools.map-deep-get($typography, 'button', 'size'),
318+
$fab-font-weight: tools.map-deep-get($typography, 'button', 'weight'),
319+
$input-font-size: tools.map-deep-get($typography, 'body-1', 'size'),
320+
$input-font-weight: tools.map-deep-get($typography, 'body-1', 'weight'),
321+
$list-item-nav-subtitle-font-weight: tools.map-deep-get($typography, 'body-2', 'weight'),
322+
$list-item-nav-subtitle-letter-spacing: tools.map-deep-get($typography, 'body-2', 'letter-spacing'),
323+
$list-item-subtitle-font-size: tools.map-deep-get($typography, 'body-2', 'size'),
324+
$list-item-subtitle-font-weight: tools.map-deep-get($typography, 'body-2', 'weight'),
325+
$list-item-subtitle-letter-spacing: tools.map-deep-get($typography, 'body-2', 'letter-spacing'),
326+
$list-item-title-font-size: tools.map-deep-get($typography, 'body-1', 'size'),
327+
$list-item-title-font-weight: tools.map-deep-get($typography, 'body-1', 'weight'),
328+
$list-item-title-letter-spacing: tools.map-deep-get($typography, 'subtitle-1', 'letter-spacing'),
329+
$list-item-title-line-height: tools.map-deep-get($typography, 'body-1', 'line-height'),
330+
$slider-thumb-label-font-size: tools.map-deep-get($typography, 'caption', 'size'),
331+
$snackbar-font-size: tools.map-deep-get($typography, 'body-2', 'size'),
332+
$snackbar-font-weight: tools.map-deep-get($typography, 'body-2', 'weight'),
333+
$snackbar-letter-spacing: tools.map-deep-get($typography, 'body-2', 'letter-spacing'),
334+
$snackbar-line-height: tools.map-deep-get($typography, 'body-2', 'line-height'),
335+
$system-bar-font-size: tools.map-deep-get($typography, 'caption', 'size'),
336+
$system-bar-font-weight: tools.map-deep-get($typography, 'caption', 'weight'),
337+
$system-bar-letter-spacing: tools.map-deep-get($typography, 'caption', 'letter-spacing'),
338+
$system-bar-line-height: tools.map-deep-get($typography, 'caption', 'line-height'),
339+
$system-bar-text-transform: tools.map-deep-get($typography, 'caption', 'text-transform'),
340+
$table-header-font-size: tools.map-deep-get($typography, 'caption', 'size'),
341+
$table-font-size: tools.map-deep-get($typography, 'body-2', 'size'),
342+
$table-row-font-size: tools.map-deep-get($typography, 'subtitle-2', 'size'),
343+
$icon-btn-font-size: tools.map-deep-get($typography, 'button', 'size'),
344+
$icon-btn-font-weight: tools.map-deep-get($typography, 'button', 'weight'),
345345
);
346346
```

0 commit comments

Comments
 (0)