Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions packages/ui-components/__design__/text.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,24 @@ export const HeadingsWithLinks: StoryObj = {
),
};

export const BoldAndLinks: StoryObj = {
render: () => (
<main>
<p>
<strong>Bold text (should inherit normal text color)</strong>
</p>
<p>
<strong>
<a href="#">Bold green link (link inside bold)</a>
</strong>
</p>
<p>
<a href="#">
<strong>Bold green link (bold inside link)</strong>
</a>
</p>
</main>
),
};

export default { title: 'Design System' } as MetaObj;
14 changes: 5 additions & 9 deletions packages/ui-components/styles/markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,18 @@ main {
h4,
h5,
h6 {
@apply font-semibold
text-neutral-900
dark:text-white;

&[id] a {
@apply text-neutral-900
dark:text-white;
}
}

h1,
h2,
h3,
h4,
h5,
h6,
strong {
@apply font-semibold
text-neutral-900
dark:text-white;
@apply font-semibold;
}

code {
Expand Down
Loading