Skip to content

Commit b0e0d4d

Browse files
committed
i will alter components until they come for me
1 parent 639ee2e commit b0e0d4d

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

app/src/molecules/InterventionModal/ModalContentOneColSimpleButtons.tsx

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
DIRECTION_COLUMN,
55
Flex,
66
LegacyStyledText,
7+
OVERFLOW_SCROLL,
78
RadioButton,
89
SPACING,
910
TYPOGRAPHY,
@@ -25,6 +26,7 @@ export interface ModalContentOneColSimpleButtonsProps {
2526
onSelect?: ChangeEventHandler<HTMLInputElement>
2627
initialSelected?: string
2728
subText?: string
29+
scroll?: boolean
2830
}
2931

3032
export function ModalContentOneColSimpleButtons(
@@ -34,16 +36,26 @@ export function ModalContentOneColSimpleButtons(
3436
props.initialSelected ?? null
3537
)
3638
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}
4358
>
44-
{props.headline}
45-
</LegacyStyledText>
46-
<Flex flexDirection={DIRECTION_COLUMN} gap={SPACING.spacing4}>
4759
{props.buttons.map((buttonProps, idx) => (
4860
<RadioButton
4961
key={`button${idx}-${buttonProps.value}`}

0 commit comments

Comments
 (0)