Skip to content

Commit

Permalink
remove ReadMore changes
Browse files Browse the repository at this point in the history
  • Loading branch information
olerichter00 committed Sep 7, 2023
1 parent acaf6ce commit 61170b8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/palette/src/elements/ReadMore/ReadMore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const ReadMore: React.FC<ReadMoreProps> = ({
}

return (
<Container aria-expanded={expanded} showDetails={expanded}>
<Container aria-expanded={expanded}>
{expanded ? (
<>
<Box dangerouslySetInnerHTML={{ __html: expandedHTML }} />
Expand Down Expand Up @@ -85,12 +85,7 @@ export const ReadMore: React.FC<ReadMoreProps> = ({
)
}

const Container = styled.div<{
showDetails: boolean
}>`
transition: max-height 3s;
max-height: ${({ showDetails }) =>
showDetails ? "1000px" : "calc(1.5rem * 2)"};
const Container = styled.div`
> * > span > *:last-child {
display: inherit;
}
Expand Down

0 comments on commit 61170b8

Please sign in to comment.