Skip to content

Commit cf95ac7

Browse files
Copilothectahertz
andcommitted
Update Portal.stories.tsx to no longer use styled-components
Co-authored-by: hectahertz <[email protected]>
1 parent 3d0c83e commit cf95ac7

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.RedContainer {
2+
background-color: var(--bgColor-danger-muted);
3+
padding: var(--base-size-16);
4+
}
5+
6+
.GreenContainer {
7+
background-color: var(--bgColor-success-muted);
8+
padding: var(--base-size-16);
9+
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type {Meta} from '@storybook/react-vite'
22

3-
import {Box} from '..'
43
import {Portal} from './Portal'
4+
import styles from './Portal.stories.module.css'
55

66
export default {
77
title: 'Behaviors/Portal',
@@ -11,14 +11,14 @@ export default {
1111
export const Default = () => (
1212
<>
1313
Root position
14-
<Box bg="red.2" p={3}>
14+
<div className={styles.RedContainer}>
1515
Outer container
16-
<Box bg="green.2" p={3}>
16+
<div className={styles.GreenContainer}>
1717
Inner container
1818
<Portal>
1919
Portaled content rendered at <code>&lt;BaseStyles&gt;</code> root.
2020
</Portal>
21-
</Box>
22-
</Box>
21+
</div>
22+
</div>
2323
</>
2424
)

0 commit comments

Comments
 (0)