Skip to content

Commit b51db52

Browse files
authored
chore(design-system): use semantic html in storybook overview [AR-54812] (#307)
MDX adds its own `<p>` tag each time you add a new line, and our `<DsTypography />` also adds a `<p>` tag. As a result, we got invalid HTML
1 parent 7752e64 commit b51db52

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

packages/design-system/src/stories/overview.mdx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ import logoUrl from './assets/logo.svg';
1818
<img src={logoUrl} className={styles.logo} alt="DriveNets" />
1919
<DsTypography variant="heading1">DriveNets Design System</DsTypography>
2020
</div>
21-
<DsTypography variant="body-md-reg" className={styles.heroDescription}>
22-
The official component library for building consistent, scalable UI across DriveNets applications. Browse
23-
components in the sidebar, copy code from the docs, and ship faster.
21+
<DsTypography variant="body-md-reg" asChild className={styles.heroDescription}>
22+
<span>
23+
The official component library for building consistent, scalable UI across DriveNets applications.
24+
Browse components in the sidebar, copy code from the docs, and ship faster.
25+
</span>
2426
</DsTypography>
2527
</div>
2628

@@ -92,10 +94,12 @@ export const App = () => (
9294
<DsTypography variant="heading2">ESLint Plugin</DsTypography>
9395
</div>
9496

95-
<DsTypography variant="body-md-reg" className={styles.sectionDescription}>
96-
Enforce design system consistency and catch deprecated components early with the ESLint plugin. It prevents
97-
usage of native HTML elements and MUI components, ensuring your codebase stays aligned with the design
98-
system.
97+
<DsTypography variant="body-md-reg" asChild className={styles.sectionDescription}>
98+
<span>
99+
Enforce design system consistency and catch deprecated components early with the ESLint plugin. It
100+
prevents usage of native HTML elements and MUI components, ensuring your codebase stays aligned with the
101+
design system.
102+
</span>
99103
</DsTypography>
100104

101105
<div className={styles.steps}>

0 commit comments

Comments
 (0)