Skip to content

Commit

Permalink
Fix StatusLabel examples in doc site
Browse files Browse the repository at this point in the history
  • Loading branch information
harriplappalainen committed Oct 4, 2023
1 parent 7b041c7 commit 8cbfdb9
Showing 1 changed file with 10 additions and 30 deletions.
40 changes: 10 additions & 30 deletions site/src/docs/components/status-label/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@ export default ({ children, pageContext }) => <TabsLayout pageContext={pageConte

<PlaygroundPreview>
<StatusLabel type="success">Completed</StatusLabel>
<StatusLabel type="alert" style={{ marginLeft: 'var(--spacing-s)' }} iconLeft={<IconAlertCircle />}>
Needs attention
</StatusLabel>
<StatusLabel type="error" style={{ marginLeft: 'var(--spacing-s)' }} iconLeft={<IconError />}>
Rejected
</StatusLabel>
<StatusLabel type="alert" style={{ marginLeft: 'var(--spacing-s)' }} iconLeft={<IconAlertCircle />}>Needs attention</StatusLabel>
<StatusLabel type="error" style={{ marginLeft: 'var(--spacing-s)' }} iconLeft={<IconError />}>Rejected</StatusLabel>
</PlaygroundPreview>

### Principles
Expand All @@ -40,18 +36,10 @@ StatusLabel comes in five (5) different types. One neutral and four (4) with dif

<PlaygroundPreview>
<StatusLabel>Neutral</StatusLabel>
<StatusLabel type="info" style={{ marginLeft: 'var(--spacing-s)' }}>
Info
</StatusLabel>
<StatusLabel type="success" style={{ marginLeft: 'var(--spacing-s)' }}>
Success
</StatusLabel>
<StatusLabel type="alert" style={{ marginLeft: 'var(--spacing-s)' }}>
Alert
</StatusLabel>
<StatusLabel type="error" style={{ marginLeft: 'var(--spacing-s)' }}>
Error
</StatusLabel>
<StatusLabel type="info" style={{ marginLeft: 'var(--spacing-s)' }}>Info</StatusLabel>
<StatusLabel type="success" style={{ marginLeft: 'var(--spacing-s)' }}>Success</StatusLabel>
<StatusLabel type="alert" style={{ marginLeft: 'var(--spacing-s)' }}>Alert</StatusLabel>
<StatusLabel type="error" style={{ marginLeft: 'var(--spacing-s)' }}>Error</StatusLabel>
</PlaygroundPreview>

#### With an icon
Expand All @@ -60,16 +48,8 @@ An icon can be used on the left side of the StatusLabel's text label. The icon s

<PlaygroundPreview>
<StatusLabel iconLeft={<IconInfoCircle />}>Neutral</StatusLabel>
<StatusLabel type="info" style={{ marginLeft: 'var(--spacing-s)' }} iconLeft={<IconInfoCircle />}>
Info
</StatusLabel>
<StatusLabel type="success" style={{ marginLeft: 'var(--spacing-s)' }} iconLeft={<IconCheckCircle />}>
Success
</StatusLabel>
<StatusLabel type="alert" style={{ marginLeft: 'var(--spacing-s)' }} iconLeft={<IconAlertCircle />}>
Alert
</StatusLabel>
<StatusLabel type="error" style={{ marginLeft: 'var(--spacing-s)' }} iconLeft={<IconError />}>
Error
</StatusLabel>
<StatusLabel type="info" style={{ marginLeft: 'var(--spacing-s)' }} iconLeft={<IconInfoCircle />}>Info</StatusLabel>
<StatusLabel type="success" style={{ marginLeft: 'var(--spacing-s)' }} iconLeft={<IconCheckCircle />}>Success</StatusLabel>
<StatusLabel type="alert" style={{ marginLeft: 'var(--spacing-s)' }} iconLeft={<IconAlertCircle />}>Alert</StatusLabel>
<StatusLabel type="error" style={{ marginLeft: 'var(--spacing-s)' }} iconLeft={<IconError />}>Error</StatusLabel>
</PlaygroundPreview>

0 comments on commit 8cbfdb9

Please sign in to comment.