File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @schubergphilis/sbp-frontend-style" ,
3- "version" : " 1.11.0" ,
3+ "version" : " 1.11.1- 0" ,
44 "license" : " MIT" ,
55 "type" : " module" ,
66 "types" : " ./dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -69,16 +69,21 @@ const Accordion = ({
6969 < Card
7070 key = { index }
7171 isSelected = { showSelected ? challenge ( index ) : false }
72- aria-expanded = { challenge ( index ) }
7372 id = { id ?? undefined } >
7473 < CardHeader
74+ aria-expanded = { challenge ( index ) }
75+ aria-controls = { `accordion${ title . replace ( / [ " _ - \s \W ] / gim, '' ) } ${ index } ` }
7576 data-title
7677 isOpen = { challenge ( index ) }
7778 icon = { icon }
7879 onClick = { ( ) => handleOpenList ( index ) } >
7980 < h3 > { title } </ h3 >
8081 </ CardHeader >
81- < CardContent data-content isOpen = { challenge ( index ) } >
82+ < CardContent
83+ data-content
84+ isOpen = { challenge ( index ) }
85+ aria-hidden = { ! challenge ( index ) }
86+ id = { `accordion${ title . replace ( / [ " _ - \s \W ] / gim, '' ) } ${ index } ` } >
8287 { content }
8388 </ CardContent >
8489 </ Card >
You can’t perform that action at this time.
0 commit comments