Skip to content

Commit 1004de3

Browse files
authored
refactor: mark MD2 typography as deprecated (#4706)
1 parent e69f9d2 commit 1004de3

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

src/components/Typography/v2/Caption.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export type Props = React.ComponentProps<typeof Text> & {
99
};
1010

1111
// @component-group Typography
12-
1312
/**
13+
* @deprecated Deprecated in v5.x - use `<Text variant="bodySmall" />` instead.
1414
* Typography component for showing a caption.
1515
*
1616
* <div class="screenshots">

src/components/Typography/v2/Headline.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export type Props = React.ComponentProps<typeof Text> & {
1111
// @component-group Typography
1212

1313
/**
14+
* @deprecated Deprecated in v5.x - use `<Text variant="headlineSmall" />` instead.
1415
* Typography component for showing a headline.
1516
*
1617
* <div class="screenshots">

src/components/Typography/v2/Paragraph.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export type Props = TextProps & {
1010
// @component-group Typography
1111

1212
/**
13+
* @deprecated Deprecated in v5.x - use `<Text variant="bodyMedium" />` instead.
1314
* Typography component for showing a paragraph.
1415
*
1516
* <div class="screenshots">

src/components/Typography/v2/Subheading.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export type Props = React.ComponentProps<typeof Text> & {
1111
// @component-group Typography
1212

1313
/**
14+
* @deprecated Deprecated in v5.x - use `<Text variant="titleMedium" />` instead.
1415
* Typography component for showing a subheading.
1516
*
1617
* <div class="screenshots">

src/components/Typography/v2/Title.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export type Props = React.ComponentProps<typeof Text> & {
1010
// @component-group Typography
1111

1212
/**
13+
* @deprecated Deprecated in v5.x - use `<Text variant="titleLarge" />` instead.
1314
* Typography component for showing a title.
1415
*
1516
* <div class="screenshots">

0 commit comments

Comments
 (0)