Skip to content

Commit b7da452

Browse files
authored
Add base text size 3 for StyledText (#124)
* StyledText base font size 3 * update story
1 parent 3879370 commit b7da452

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/styled-text/styled-text.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111
baseTextSize: {
1212
control: {
1313
type: "select",
14-
options: [1, 2],
14+
options: [1, 2, 3],
1515
},
1616
},
1717
},

src/styled-text/styled-text.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import clsx from "clsx";
22
import React from "react";
33
type Props = {
4-
baseTextSize?: 1 | 2;
4+
baseTextSize?: 1 | 2 | 3;
55
children?: React.ReactNode;
66
dangerouslySetInnerHTML?: {
77
__html: string;
@@ -25,6 +25,8 @@ export const StyledText = ({
2525
baseTextSize === 1,
2626
"prose-p:text-md prose-p:leading-7 prose-p:text-grey-900 prose-li:text-md prose-li:leading-7 prose-li:text-grey-900":
2727
baseTextSize === 2,
28+
"prose-p:text-base prose-p:leading-4 prose-p:text-grey-900 prose-li:text-base prose-li:leading-4 prose-li:text-grey-900":
29+
baseTextSize === 3,
2830
},
2931
// h styles
3032
"prose-h2:font-semibold prose-h2:text-3md prose-h2:leading-8 prose-h2:lg:text-xl prose-h2:lg:leading-11 prose-h2:text-grey-900",

0 commit comments

Comments
 (0)