Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sbp-frontend-style/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@schubergphilis/sbp-frontend-style",
"version": "1.11.0",
"version": "1.11.1-0",
"license": "MIT",
"type": "module",
"types": "./dist/index.d.ts",
Expand Down
9 changes: 7 additions & 2 deletions sbp-frontend-style/src/components/organisms/Accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,21 @@ const Accordion = ({
<Card
key={index}
isSelected={showSelected ? challenge(index) : false}
aria-expanded={challenge(index)}
id={id ?? undefined}>
<CardHeader
aria-expanded={challenge(index)}
aria-controls={`accordion${title.replace(/["_-\s\W]/gim, '')}${index}`}
data-title
isOpen={challenge(index)}
icon={icon}
onClick={() => handleOpenList(index)}>
<h3>{title}</h3>
</CardHeader>
<CardContent data-content isOpen={challenge(index)}>
<CardContent
data-content
isOpen={challenge(index)}
aria-hidden={!challenge(index)}
id={`accordion${title.replace(/["_-\s\W]/gim, '')}${index}`}>
{content}
</CardContent>
</Card>
Expand Down