Skip to content

Commit a85237a

Browse files
Adds semibold font weight to Text component (#1296)
Co-authored-by: Jason Basuil <[email protected]>
1 parent 11639b4 commit a85237a

File tree

9 files changed

+12
-5
lines changed

9 files changed

+12
-5
lines changed

scss/css_properties.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@
224224
--synth-font-family: Inter, sans-serif;
225225
--synth-font-weight-regular: 400;
226226
--synth-font-weight-medium: 500;
227+
--synth-font-weight-semibold: 600;
227228
--synth-font-weight-bold: 700;
228229
--synth-font-size-base: 0.875rem;
229230

scss/global.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');
1+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
22
@import './baseline';
33
@import './css_properties.scss';
44
@import './theme';

src/Container/Col.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export function Col({
8383
xxl={xxl}
8484
{...props}
8585
>
86-
{ children }
86+
{children}
8787
</ReactBootstrapCol>
8888
);
8989
}

src/Container/Container.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function Container({
4242
fluid={fluid}
4343
{...props}
4444
>
45-
{ children }
45+
{children}
4646
</ReactBootstrapContainer>
4747
);
4848
}

src/Container/Row.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export function Row({
8383
xxl={xxl}
8484
{...props}
8585
>
86-
{ children }
86+
{children}
8787
</ReactBootstrapRow>
8888
);
8989
}

src/Text/Text.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Adjust the font `size` with the available sizes:
3939

4040
Use to give text one of the supported font weights:
4141

42-
`bold`, `medium`, or `regular`
42+
`bold`, `semibold`, `medium`, or `regular`
4343

4444
<Canvas of={ComponentStories.Weight} />
4545

src/Text/Text.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
font-weight: var(--synth-font-weight-bold);
2323
}
2424

25+
&--semibold {
26+
font-weight: var(--synth-font-weight-semibold);
27+
}
28+
2529
&--medium {
2630
font-weight: var(--synth-font-weight-medium);
2731
}

src/Text/Text.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export function Weight() {
3535
return (
3636
<>
3737
<Text weight="bold">Source from a pool of more than 2.1 million participants to reach nearly any target audience.</Text>
38+
<Text weight="semibold">Source from a pool of more than 2.1 million participants to reach nearly any target audience.</Text>
3839
<Text weight="medium">Source from a pool of more than 2.1 million participants to reach nearly any target audience.</Text>
3940
<Text weight="regular">Source from a pool of more than 2.1 million participants to reach nearly any target audience.</Text>
4041
</>

src/Text/Text.types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const TEXT_PROPS = {
1212
weight: {
1313
bold: 'bold',
1414
medium: 'medium',
15+
semibold: 'semibold',
1516
regular: 'regular',
1617
},
1718
} as const;

0 commit comments

Comments
 (0)