File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
packages/react/src/Portal Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change 1
1
import type { Meta } from '@storybook/react-vite'
2
2
3
- import { Box } from '..'
4
3
import { Portal } from './Portal'
4
+ import styles from './Portal.stories.module.css'
5
5
6
6
export default {
7
7
title : 'Behaviors/Portal' ,
@@ -11,14 +11,14 @@ export default {
11
11
export const Default = ( ) => (
12
12
< >
13
13
Root position
14
- < Box bg = "red.2" p = { 3 } >
14
+ < div className = { styles . RedContainer } >
15
15
Outer container
16
- < Box bg = "green.2" p = { 3 } >
16
+ < div className = { styles . GreenContainer } >
17
17
Inner container
18
18
< Portal >
19
19
Portaled content rendered at < code > <BaseStyles></ code > root.
20
20
</ Portal >
21
- </ Box >
22
- </ Box >
21
+ </ div >
22
+ </ div >
23
23
</ >
24
24
)
You can’t perform that action at this time.
0 commit comments