Skip to content

Commit 0c43fea

Browse files
committed
test(storybook): add story for bold text and links to cover markdown edge cases
- Adds a story to the text stories. - Demonstrates bold text, a link inside bold, and bold inside a link. - Ensures CSS changes are visually tested for all relevant markdown scenarios.
1 parent ce69ebb commit 0c43fea

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

packages/ui-components/__design__/text.stories.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,24 @@ export const HeadingsWithLinks: StoryObj = {
7777
),
7878
};
7979

80+
export const BoldAndLinks: StoryObj = {
81+
render: () => (
82+
<main>
83+
<p>
84+
<strong>Bold text (should inherit normal text color)</strong>
85+
</p>
86+
<p>
87+
<strong>
88+
<a href="#">Bold green link (link inside bold)</a>
89+
</strong>
90+
</p>
91+
<p>
92+
<a href="#">
93+
<strong>Bold green link (bold inside link)</strong>
94+
</a>
95+
</p>
96+
</main>
97+
),
98+
};
99+
80100
export default { title: 'Design System' } as MetaObj;

0 commit comments

Comments
 (0)