Skip to content

Commit 2a89dc8

Browse files
committed
refactor(CAccordion): add aria-expanded
1 parent a2b8e7c commit 2a89dc8

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

docs/4.0/components/CAccordion.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@ Add `flush` to remove the default `background-color`, some borders, and some rou
150150
}}
151151
</Playground>
152152

153-
<!-- ## TODO: Accessibility - https://coreui.io/docs/components/accordion/#accessibility -->
154-
155153
## API
156154

157155
### CAccordion

src/components/accordion/CAccordionButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const CAccordionButton = forwardRef<HTMLButtonElement, CAccordionButtonPr
1818
const _className = classNames('accordion-button', { collapsed: collapsed }, className)
1919

2020
return (
21-
<button className={_className} {...rest} ref={ref}>
21+
<button className={_className} {...rest} aria-expanded={!collapsed} ref={ref}>
2222
{children}
2323
</button>
2424
)

0 commit comments

Comments
 (0)