diff --git a/src/components/FAQ.astro b/src/components/FAQ.astro index e0dd712..c5df346 100644 --- a/src/components/FAQ.astro +++ b/src/components/FAQ.astro @@ -77,7 +77,7 @@ const faqsCol2 = faqs.slice(split);

FAQ

- Frequently asked questions – we've got the answers + Frequently asked questions – we've got the answers

@@ -101,11 +101,13 @@ const faqsCol2 = faqs.slice(split); diff --git a/src/components/FAQDropdown/index.tsx b/src/components/FAQDropdown/index.tsx index 459a99c..4103cff 100644 --- a/src/components/FAQDropdown/index.tsx +++ b/src/components/FAQDropdown/index.tsx @@ -17,13 +17,11 @@ const FAQDropdown = ({ question, defaultOpen }: FAQDropdownProps) => { const { label, content, hyperlink } = question; const handleToggle = () => { - setIsOpen(!isOpen); + setIsOpen(prev => !prev); }; const renderContent = () => { - const containsLink = ['Is there an event schedule?'].includes(label); - - if (containsLink && hyperlink) { + if (hyperlink) { const { target, link } = hyperlink; const parts = content.split(target); @@ -54,6 +52,7 @@ const FAQDropdown = ({ question, defaultOpen }: FAQDropdownProps) => { className={styles.labelContainer} onClick={handleToggle} tabIndex={0} + onKeyUp={handleToggle} >
{isOpen ? '-' : '+'}
{label} diff --git a/src/components/FAQDropdown/style.module.scss b/src/components/FAQDropdown/style.module.scss index 6834c84..426abef 100644 --- a/src/components/FAQDropdown/style.module.scss +++ b/src/components/FAQDropdown/style.module.scss @@ -13,13 +13,11 @@ gap: 1.75rem; align-items: center; font-weight: 700; - - &:hover { - cursor: pointer; - } + cursor: pointer; .statusIcon { font-size: 1.5rem; + text-align: center; } b { @@ -32,11 +30,7 @@ margin-left: 2.5rem; p { - color: colors.$text; - font-family: Apercu Pro; - font-size: 1rem; font-style: normal; font-weight: 400; - line-height: 24px; } }