Skip to content

Commit

Permalink
feat(Doc): code update following PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck Gaudin committed May 9, 2024
1 parent 570bfd8 commit 815c261
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const ComponentWrapper = ({ className, src }: ComponentWrapperProps) => {
loading: () => <PreviewSkeleton overlay />
}), [src]);

const [colorScheme, setColorScheme] = useState<"light" | "dark">("light");
const [colorScheme, setColorScheme] = useState<"light" | "dark">("dark");

const toggleTheme = () => {
const theme: ColorScheme = colorScheme === "dark"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
--hd-color-neutral-icon: var(--hd-neutral-900);
}


[data-theme="dark"] .hd-component-wrapper--light .hd-component-wrapper__action:hover {
--hd-color-neutral-icon: var(--hd-neutral-0);
}
Expand All @@ -47,6 +48,7 @@
--hd-color-neutral-icon: var(--hd-neutral-0);
}

[data-theme="dark"] .hd-component-wrapper--light .hd-preview-component__content,
.hd-component-wrapper--light .hd-preview-component__content {
--background: var(--hd-white);
--color: var(--hd-neutral-50);
Expand Down
1 change: 1 addition & 0 deletions apps/docs/app/ui/components/propTable/PropTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const formatGroup = (groups: Groups[]) => {
...item,
name: <Code value={item.name}>{item.name}</Code>,
type: <HighlightCode code={item.type} variant="tiny" />,
defaultValue: item.defaultValue.replace(/'/g, "\""),
description: <MDXRemote source={description} />
};
})
Expand Down
5 changes: 2 additions & 3 deletions apps/docs/content/components/button.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ links:
<PreviewComponent src="buttons/docs/preview"/>

## Usage
```tsx
import { Button } from "@hopper-ui/components";
```
```tsx showLineNumbers
import { Button } from "@hopper-ui/components";

<Button>save</Button>
```
## Props
Expand Down

0 comments on commit 815c261

Please sign in to comment.