diff --git a/src/components/FAQ.astro b/src/components/FAQ.astro index c5df346..94b07ae 100644 --- a/src/components/FAQ.astro +++ b/src/components/FAQ.astro @@ -127,9 +127,9 @@ const faqsCol2 = faqs.slice(split); .faq-content { display: flex; gap: 32px; - width: 100%; + width: 62rem; align-items: flex-start; - padding: 0 15%; + margin: 0 auto; } .faq-container { display: flex; diff --git a/src/components/FAQDropdown/index.tsx b/src/components/FAQDropdown/index.tsx index 4103cff..534d687 100644 --- a/src/components/FAQDropdown/index.tsx +++ b/src/components/FAQDropdown/index.tsx @@ -46,13 +46,19 @@ const FAQDropdown = ({ question, defaultOpen }: FAQDropdownProps) => { ); }; + const handleKeyDown = (e: React.KeyboardEvent) => { + if (e.key === 'Enter') { + handleToggle(); + } + }; + return (