From d4b22088b089fbd1bb6e8ac04baf8292d5de1aae Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 2 Dec 2024 12:54:58 +0100 Subject: [PATCH] remove css solution to remove all margin bottom of last child, add disableLastBottomSpacing to RTE inside accordion --- site/src/common/blocks/AccordionItemBlock.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/site/src/common/blocks/AccordionItemBlock.tsx b/site/src/common/blocks/AccordionItemBlock.tsx index 7f3e71bc4..2f8f5f47d 100644 --- a/site/src/common/blocks/AccordionItemBlock.tsx +++ b/site/src/common/blocks/AccordionItemBlock.tsx @@ -12,7 +12,7 @@ import styled from "styled-components"; import { Typography } from "../components/Typography"; const supportedBlocks: SupportedBlocks = { - richtext: (props) => , + richtext: (props) => , heading: (props) => , space: (props) => , callToActionList: (props) => , @@ -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; - } `;