Skip to content

Commit 10c99c2

Browse files
authored
fix(MultiAccordion): restrain item trigger content within item element (#627)
1 parent 389a2c6 commit 10c99c2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/components/MultiAccordion/MultiAccordion.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,15 @@ const MultiAccordionItem = ({
144144
fillWidth
145145
justifyContent="space-between"
146146
component="span"
147+
overflow="hidden"
147148
>
148-
<Text
149+
<AccordionItemTitle
149150
component="span"
150151
size={customSize}
151152
fillWidth={fillWidth}
152153
>
153154
{title}
154-
</Text>
155+
</AccordionItemTitle>
155156
{showCheck && (
156157
<CustomIcon
157158
name={isCompleted ? "check-in-circle" : "circle"}
@@ -289,3 +290,7 @@ const AccordionContent = styled(RadixAccordion.Content)<{ $padding: PaddingOptio
289290
padding: ${({ theme, $padding }): string => theme.click.container.space[$padding]};
290291
padding-top: 0;
291292
`;
293+
294+
const AccordionItemTitle = styled(Text)`
295+
overflow: hidden;
296+
`;

0 commit comments

Comments
 (0)