Skip to content

Commit 6b71051

Browse files
committed
refactor: rename text type
1 parent 7eb1954 commit 6b71051

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/components/text/src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface TextProps<T extends HTMLTag> extends BaseHTMLProps, ConsumerPol
1717
/** Adds margin to the text element */
1818
margin?: boolean;
1919
/** Specifies the type/visual variation of text element to be rendered */
20-
type?: "huge" | "soft" | keyof Pick<ReactHTML, "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p">;
20+
type?: "banner" | "soft" | keyof Pick<ReactHTML, "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p">;
2121
/* Specifies the visual style variation(s) for the text */
2222
variation?: TextVariation | TextVariation[];
2323
}
@@ -67,7 +67,7 @@ export const Text = <T extends HTMLTag>({
6767

6868
switch (type) {
6969
case "soft":
70-
case "huge": {
70+
case "banner": {
7171
value = "h1";
7272
break;
7373
}

packages/components/text/src/styles/_variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $text-types: (
1414
),
1515
hover: (),
1616
),
17-
huge: (
17+
banner: (
1818
default: (
1919
font-size: 60px,
2020
font-weight: 700,

packages/docs/stories/src/banner.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const Component: Story = {
3434
src: faker.image.urlPicsumPhotos(),
3535
children: (
3636
<>
37-
<Text type="huge">{faker.lorem.sentence()}</Text>
37+
<Text type="banner">{faker.lorem.sentence()}</Text>
3838

3939
<Text>{faker.lorem.sentence()}</Text>
4040

0 commit comments

Comments
 (0)