Skip to content

Commit f489e00

Browse files
authored
add Accordion breaking changes to release notes (#7128)
1 parent 44fa2a5 commit f489e00

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/dev/docs/pages/releases/2024-09-30.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,13 @@ Huge thanks as always to everyone who contributed to this release! 😍
9797
- Accordion - [@reidbarber](https://github.com/reidbarber) - [PR](https://github.com/adobe/react-spectrum/pull/6931)
9898
- Add DisclosureGroup component to RAC - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/7063)
9999
- Add basic docs for Accordion, DisclosureGroup, Disclosure - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/7071)
100+
101+
### Accordion updates
102+
103+
We have made improvements to the Accordion component, which includes moving away from the Collection API in favor of wrapping `Disclosure` components, which can be used standalone. This includes a few breaking changes.
104+
- `Item` has been replaced with the `Disclosure` component, which consists of two children: `DisclosureHeader` and `DisclosurePanel`
105+
- `title` on `Item` is now a child of `DisclosureHeader`
106+
- Children of `Item` is now children of `DisclosurePanel`
107+
- `key` on `Item` is now `id` on `Disclosure`
108+
- `disabledKeys` has been removed in favor of adding `isDisabled` on individual `Disclosure` components
109+
- `allowsMultipleExpanded` can be added to allow multiple Disclosure components to be expanded at once (previously default behavior)

0 commit comments

Comments
 (0)