Skip to content

Commit 35fd28f

Browse files
committed
fix: remove wrapper element to simplify example
1 parent 2d5ffcf commit 35fd28f

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

packages/react-components/react-theme/stories/Theme/typography/MixedStyles.stories.tsx

+3-8
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ import * as React from 'react';
22
import { makeStyles, typographyStyles, Text } from '@fluentui/react-components';
33

44
const useStyles = makeStyles({
5-
container: {
6-
display: 'flex',
7-
flexDirection: 'column',
8-
},
9-
105
title: typographyStyles.title2,
116

127
paragraph: {
@@ -20,12 +15,12 @@ export const MixedStyles = () => {
2015
const styles = useStyles();
2116

2217
return (
23-
<div className={styles.container}>
24-
<Text as="h1" className={styles.title}>
18+
<div>
19+
<Text as="h1" block className={styles.title}>
2520
Using Title 2 tokens
2621
</Text>
2722

28-
<Text as="p" className={styles.paragraph}>
23+
<Text as="p" block className={styles.paragraph}>
2924
I'm a paragraph using Body 1 tokens and customized styles
3025
</Text>
3126
</div>

packages/react-components/react-theme/stories/Theme/typography/index.stories.mdx

+3-8
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,6 @@ import * as React from 'react';
7474
import { makeStyles, typographyStyles, Text } from '@fluentui/react-components';
7575

7676
const useStyles = makeStyles({
77-
container: {
78-
display: 'flex',
79-
flexDirection: 'column',
80-
},
81-
8277
title: typographyStyles.title2,
8378

8479
paragraph: {
@@ -92,12 +87,12 @@ export const MixedStyles = () => {
9287
const styles = useStyles();
9388

9489
return (
95-
<div className={styles.container}>
96-
<Text as="h1" className={styles.title}>
90+
<div>
91+
<Text as="h1" block className={styles.title}>
9792
Using Title 2 tokens
9893
</Text>
9994

100-
<Text as="p" className={styles.paragraph}>
95+
<Text as="p" block className={styles.paragraph}>
10196
I'm a paragraph using Body 1 tokens and customized styles
10297
</Text>
10398
</div>

0 commit comments

Comments
 (0)