diff --git a/src/components/Home/About.jsx b/src/components/Home/About.jsx index 8746b36..91f1d1a 100644 --- a/src/components/Home/About.jsx +++ b/src/components/Home/About.jsx @@ -27,8 +27,8 @@ const About = () => { ))}
  • - {aboutSocialLinks.map((element) => ( - ( + { onToggle(accordion.id); } + const handleKeyDown = (event) => { + if (event.key === 'Enter' || event.key === ' ') { + toggleAcc(); + event.preventDefault(); + } + }; + useEffect(() => { if (contentHeight.current) { contentHeight.current.style.maxHeight = accordion.open @@ -21,9 +28,13 @@ const AccordionElement = ({ accordion, onToggle }) => {

    {accordion.question}