Skip to content

Commit 535e0a5

Browse files
authored
Merge pull request #250 from codegouvfr/feautre/add-id-to-accordion-toggle-button
Add id attribute on Accordion toggler
2 parents 4b3aa8d + 22ce525 commit 535e0a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Accordion.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export const Accordion = memo(
9292
aria-controls={collapseElementId}
9393
onClick={onExtendButtonClick}
9494
type="button"
95+
id={`${id}__toggle-btn`}
9596
>
9697
{label}
9798
</button>

0 commit comments

Comments
 (0)