Skip to content
Open
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions packages/react/src/stories/deprecated/SideNav.dev.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.ContainerBox {
border: var(--borderWidth-default) solid var(--borderColor-default);
border-radius: var(--borderRadius-medium);
padding: var(--base-size-16);
background-color: var(--bgColor-muted);
max-width: 360px;
}

.MenuHeader {
border-style: solid;
border-color: var(--borderColor-default);
border-width: 0;
border-bottom-width: var(--borderWidth-default);
border-radius: 0;
margin-bottom: var(--base-size-8);
padding-bottom: var(--base-size-4);
}
28 changes: 7 additions & 21 deletions packages/react/src/stories/deprecated/SideNav.dev.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import {Avatar, Box, CounterLabel, Heading, Label, SideNav, Text} from '../..'
import {Avatar, CounterLabel, Heading, Label, SideNav, Text} from '../..'
import type {Meta} from '@storybook/react-vite'
import type {ComponentProps} from '../../utils/types'
import Octicon from '../../Octicon'
import {DotIcon, MailIcon, PersonIcon, SmileyIcon, ZapIcon} from '@primer/octicons-react'

import styles from './SideNav.dev.module.css'

export default {
title: 'Deprecated/Components/SideNav/Dev',
component: SideNav,
Expand Down Expand Up @@ -59,28 +61,12 @@ export const FullVariant = () => (
)

export const LightweightVariant = () => (
<Box
borderWidth="1px"
borderStyle="solid"
borderColor="border.default"
borderRadius={2}
p={3}
backgroundColor="canvas.subtle"
maxWidth={360}
>
<Box
borderStyle="solid"
borderColor="border.default"
borderWidth={0}
borderBottomWidth={1}
borderRadius={0}
mb={2}
pb={1}
>
<div className={styles.ContainerBox}>
<div className={styles.MenuHeader}>
<Heading as="h2" color="fg.muted">
Menu
</Heading>
</Box>
</div>
<SideNav variant="lightweight">
<SideNav.Link href="#url">
<Text>Account</Text>
Expand All @@ -95,7 +81,7 @@ export const LightweightVariant = () => (
<Text>Notifications</Text>
</SideNav.Link>
</SideNav>
</Box>
</div>
)

export const LightweightNestedVariant = () => (
Expand Down
Loading