Skip to content

Commit 72afc52

Browse files
committed
adapt ExpandableCard
1 parent 9f4071f commit 72afc52

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/components/ExpandableCard.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,22 @@ const ExpandableCard = ({
6565
_hover={{
6666
backgroundColor: "ednBackground",
6767
}}
68-
borderBottomWidth="0"
6968
index={isVisible ? [0] : []}
7069
>
7170
<AccordionItem borderTopWidth="0" flex="1">
7271
<Heading as="h3" m={0}>
7372
<AccordionButton
7473
width="100%"
75-
p={6}
74+
px="6"
75+
py="6"
7676
flex="1"
7777
onClick={onClick}
7878
_hover={{
7979
backgroundColor: "ednBackground",
8080
}}
81+
_expanded={{
82+
backgroundColor: "transparent",
83+
}}
8184
>
8285
<Box
8386
display="flex"
@@ -122,6 +125,8 @@ const ExpandableCard = ({
122125
</AccordionButton>
123126
</Heading>
124127
<AccordionPanel
128+
p="0"
129+
mt="0"
125130
paddingX="6"
126131
paddingBottom="6"
127132
paddingTop="0"

0 commit comments

Comments
 (0)