Skip to content

Commit

Permalink
remove css solution to remove all margin bottom of last child, add di…
Browse files Browse the repository at this point in the history
…sableLastBottomSpacing to RTE inside accordion
  • Loading branch information
SebiVPS committed Dec 2, 2024
1 parent e753288 commit d4b2208
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions site/src/common/blocks/AccordionItemBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import styled from "styled-components";
import { Typography } from "../components/Typography";

const supportedBlocks: SupportedBlocks = {
richtext: (props) => <RichTextBlock data={props} />,
richtext: (props) => <RichTextBlock data={props} disableLastBottomSpacing />,
heading: (props) => <StandaloneHeadingBlock data={props} />,
space: (props) => <SpaceBlock data={props} />,
callToActionList: (props) => <StandaloneCallToActionListBlock data={props} />,
Expand Down Expand Up @@ -106,8 +106,4 @@ const ContentWrapper = styled.div<{ $height: number }>`
const ContentWrapperInner = styled.div`
padding: ${({ theme }) => theme.spacing.S500} 0;
border-top: 1px solid ${({ theme }) => theme.palette.gray["300"]};
> *:last-child {
margin-bottom: 0;
}
`;

0 comments on commit d4b2208

Please sign in to comment.