Skip to content

Commit

Permalink
#54 Fix Badge Example (#55)
Browse files Browse the repository at this point in the history
* 54 fix badge example

* #54 additional badge example
  • Loading branch information
mwarman authored Jun 3, 2024
1 parent 6abb0c4 commit e8518b2
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/pages/ComponentsPage/components/BadgeComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,27 @@ const BadgeComponents = ({

<div className="my-8">
<div className="mb-2 flex place-content-center rounded border border-neutral-500/10 p-4 dark:bg-neutral-700/25">
<Badge className="bg-blue-500" testId="my-badge">
<Badge className="!bg-blue-500" testId="my-badge">
19
</Badge>
</div>
<CodeSnippet
className="my-2"
code={`<Badge className='bg-blue-500' testId='my-badge'>19</Badge>`}
code={`<Badge className='!bg-blue-500' testId='my-badge'>19</Badge>`}
/>
</div>

<div className="my-8">
<div className="mb-2 flex place-content-center rounded border border-neutral-500/10 p-4 dark:bg-neutral-700/25">
<Badge className="!bg-neutral-500 uppercase" testId="badge-status-closed">
Closed
</Badge>
</div>
<CodeSnippet
className="my-2"
code={`<Badge className="!bg-neutral-500 uppercase" testId="badge-status-closed">
Closed
</Badge>`}
/>
</div>
</section>
Expand Down

0 comments on commit e8518b2

Please sign in to comment.