Skip to content

Commit de8988d

Browse files
side drawer action button (#106)
* chore(release): 0.0.70 * chore(release): 0.0.71 * Side drawer action button
1 parent 3f84d93 commit de8988d

File tree

3 files changed

+10394
-7472
lines changed

3 files changed

+10394
-7472
lines changed

components/modal/src/modal-layout.module.scss

+15
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@
2020
overflow: auto;
2121
}
2222

23+
.side_drawer,
24+
.side_drawer_title {
25+
overflow: auto;
26+
}
27+
28+
.side_drawer {
29+
min-height: 85vh;
30+
max-height: 85vh;
31+
}
32+
33+
.side_drawer_title {
34+
min-height: 80vh;
35+
max-height: 80vh;
36+
}
37+
2338
.actions {
2439
padding-top: size('6x');
2540
margin-top: size('6x');

components/modal/src/modal-layout.tsx

+11-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,17 @@ export default function ModalLayout({
4747
>
4848
{title && <Text.H2 className={classnames('title')}>{title}</Text.H2>}
4949

50-
<div className={classnames('content')}>{children}</div>
50+
<div
51+
className={classnames(
52+
type === MODAL_TYPE.SIDE_DRAWER
53+
? title
54+
? 'side_drawer_title'
55+
: 'side_drawer'
56+
: 'content'
57+
)}
58+
>
59+
{children}
60+
</div>
5161

5262
{actions && (
5363
<div

0 commit comments

Comments
 (0)