Skip to content

Commit

Permalink
feat: correctly use section element instead of a div with a role='reg…
Browse files Browse the repository at this point in the history
…ion'
  • Loading branch information
HRemonen committed Mar 30, 2024
1 parent 1381269 commit 4255a25
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/common/Accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,16 @@ const Accordion = ({
)}
</button>
</h2>
<div
<section
id={`${id}-body`}
role='region'
aria-hidden={!expandedBody}
aria-labelledby={`${id}-heading`}
className={`${expandedBody ? 'block' : 'hidden'}`}
>
<div className='border border-gray-200 p-5 dark:border-gray-700 dark:bg-gray-900'>
{children}
</div>
</div>
</section>
</div>
)
}
Expand Down

0 comments on commit 4255a25

Please sign in to comment.