Skip to content

Commit 935d8ce

Browse files
committed
ref(onboarding): Wrap entire alert card in ScmCardButton
Move ScmCardButton to wrap the full card including expandable children so the entire area is clickable.
1 parent 1548224 commit 935d8ce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

static/app/views/onboarding/components/scmAlertFrequency.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ function AlertOptionCard({
4646
children,
4747
}: AlertOptionCardProps) {
4848
return (
49-
<Stack gap="md">
50-
<ScmCardButton role="radio" aria-checked={isSelected} onClick={onSelect}>
49+
<ScmCardButton aria-checked={isSelected} onClick={onSelect}>
50+
<Stack gap="md">
5151
<Container
5252
border={isSelected ? 'accent' : 'secondary'}
5353
padding="lg"
@@ -71,9 +71,9 @@ function AlertOptionCard({
7171
</Flex>
7272
</Flex>
7373
</Container>
74-
</ScmCardButton>
75-
{children}
76-
</Stack>
74+
{children}
75+
</Stack>
76+
</ScmCardButton>
7777
);
7878
}
7979

0 commit comments

Comments
 (0)