File tree Expand file tree Collapse file tree 1 file changed +21
-9
lines changed
app/src/molecules/InterventionModal Expand file tree Collapse file tree 1 file changed +21
-9
lines changed Original file line number Diff line number Diff line change 4
4
DIRECTION_COLUMN ,
5
5
Flex ,
6
6
LegacyStyledText ,
7
+ OVERFLOW_SCROLL ,
7
8
RadioButton ,
8
9
SPACING ,
9
10
TYPOGRAPHY ,
@@ -25,6 +26,7 @@ export interface ModalContentOneColSimpleButtonsProps {
25
26
onSelect ?: ChangeEventHandler < HTMLInputElement >
26
27
initialSelected ?: string
27
28
subText ?: string
29
+ scroll ?: boolean
28
30
}
29
31
30
32
export function ModalContentOneColSimpleButtons (
@@ -34,16 +36,26 @@ export function ModalContentOneColSimpleButtons(
34
36
props . initialSelected ?? null
35
37
)
36
38
return (
37
- < OneColumn >
38
- < Flex flexDirection = { DIRECTION_COLUMN } gap = { SPACING . spacing16 } >
39
- < LegacyStyledText
40
- fontSize = { TYPOGRAPHY . fontSize28 }
41
- fontWeight = { TYPOGRAPHY . fontWeightSemiBold }
42
- lineHeight = { TYPOGRAPHY . lineHeight36 }
39
+ < OneColumn height = "100%" >
40
+ < Flex
41
+ flexDirection = { DIRECTION_COLUMN }
42
+ gap = { SPACING . spacing16 }
43
+ height = "100%"
44
+ >
45
+ < Flex >
46
+ < LegacyStyledText
47
+ fontSize = { TYPOGRAPHY . fontSize28 }
48
+ fontWeight = { TYPOGRAPHY . fontWeightSemiBold }
49
+ lineHeight = { TYPOGRAPHY . lineHeight36 }
50
+ >
51
+ { props . headline }
52
+ </ LegacyStyledText >
53
+ </ Flex >
54
+ < Flex
55
+ flexDirection = { DIRECTION_COLUMN }
56
+ gap = { SPACING . spacing4 }
57
+ overflowY = { props . scroll === true ? 'auto' : null }
43
58
>
44
- { props . headline }
45
- </ LegacyStyledText >
46
- < Flex flexDirection = { DIRECTION_COLUMN } gap = { SPACING . spacing4 } >
47
59
{ props . buttons . map ( ( buttonProps , idx ) => (
48
60
< RadioButton
49
61
key = { `button${ idx } -${ buttonProps . value } ` }
You can’t perform that action at this time.
0 commit comments