File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/components/faq-aggregator Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ function FaqH1({ id, children }: { id?: string; children?: ReactNode }) {
2626function FaqH2 ( { id, children } : { id ?: string ; children ?: ReactNode } ) {
2727 const slug = id ?? slugify ( String ( children ) )
2828 return (
29- < details className = "group border-b border-neu-100 dark:border-neu-200 [&:first-of-type]:border-t" >
29+ < details className = "group border-b border-neu-100 dark:border-neu-200 [&:first-of-type]:border-t [&>p:first-of-type]:!mt-0 " >
3030 < summary className = "flex cursor-pointer list-none items-center justify-between gap-4 py-4 [&::-webkit-details-marker]:hidden" >
3131 < h3 id = { slug } className = "typography-body-lg text-neu-900" >
3232 { children }
@@ -82,10 +82,7 @@ export function FaqAggregator({ children }: { children: ReactNode }) {
8282 }
8383
8484 if ( answerContent . length > 0 ) {
85- const wrapper = document . createElement ( "div" )
86- wrapper . className = "pb-4"
87- answerContent . forEach ( node => wrapper . appendChild ( node ) )
88- detail . appendChild ( wrapper )
85+ answerContent . forEach ( node => detail . appendChild ( node ) )
8986 }
9087 } )
9188
You can’t perform that action at this time.
0 commit comments