Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ThusharaJ07 committed Jul 16, 2024
1 parent fcd6ed7 commit 8b49736
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
5 changes: 1 addition & 4 deletions packages/lab/src/system-status/SystemStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ import systemStatusCss from "./SystemStatus.css";

export interface SystemStatusProps extends HTMLAttributes<HTMLDivElement> {
/**
* Emphasize the styling by applying a background color: defaults to false
*/
/**
* A string to determine the current state of the SystemStatus
* A string to determine the current state of the SystemStatus. Defaults to `info`.
*/
status?: ValidationStatus;
}
Expand Down
3 changes: 1 addition & 2 deletions packages/lab/src/system-status/SystemStatusActions.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
margin-bottom: auto;
display: flex;
gap: var(--salt-spacing-100);
min-height: var(--salt-size-base);
}
}
13 changes: 12 additions & 1 deletion packages/lab/stories/system-status/system-status.qa.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import {
SystemStatusProps,
SystemStatusContent,
} from "@salt-ds/lab";

Check failure on line 6 in packages/lab/stories/system-status/system-status.qa.stories.tsx

View workflow job for this annotation

GitHub Actions / lint

lint/style/useImportType

Some named imports are only used as types.
import {
StackLayout,
Text
} from "@salt-ds/core";
import { Meta, StoryFn } from "@storybook/react";

Check failure on line 11 in packages/lab/stories/system-status/system-status.qa.stories.tsx

View workflow job for this annotation

GitHub Actions / lint

lint/style/useImportType

All these imports are only used as types.
import { QAContainer } from "docs/components";

Expand All @@ -15,7 +19,14 @@ export default {
const BasicSystemStatusExample: FC<SystemStatusProps> = ({ status }) => {
return (
<SystemStatus status={status}>
<SystemStatusContent>Example custom renderer</SystemStatusContent>
<SystemStatusContent>
<StackLayout gap={0.5}>
<Text color="inherit">
<strong>Title</strong>
</Text>
<Text color="inherit">Example custom renderer</Text>
</StackLayout>
</SystemStatusContent>
</SystemStatus>
);
};
Expand Down
6 changes: 3 additions & 3 deletions site/docs/components/system-status/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ import { SystemStatus, SystemStatusContent, SystemStatusActions } from "@salt-ds

### `SystemStatus`

<PropsTable componentName="SystemStatus" />
<PropsTable packageName="lab" componentName="SystemStatus" />

### `SystemStatusContent`

<PropsTable componentName="SystemStatusContent" />
<PropsTable packageName="lab" componentName="SystemStatusContent" />

### `SystemStatusActions`

<PropsTable componentName="SystemStatusActions" />
<PropsTable packageName="lab" componentName="SystemStatusActions" />

0 comments on commit 8b49736

Please sign in to comment.