Skip to content

Commit 7a8a014

Browse files
Version Packages
1 parent 16ecfee commit 7a8a014

File tree

3 files changed

+44
-40
lines changed

3 files changed

+44
-40
lines changed

.changeset/modern-coins-destroy.md

Lines changed: 0 additions & 39 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,48 @@
11
# @primer/components
22

3+
## 36.0.0
4+
5+
### Major Changes
6+
7+
- [#2878](https://github.com/primer/react/pull/2878) [`87883c3f`](https://github.com/primer/react/commit/87883c3fd91a5d2809268aa0dd22b87b53ba5309) Thanks [@radglob](https://github.com/radglob)! - Update PRC ActionList implementation to have similar semantics to PVC.
8+
9+
- Removes `ActionList.Group`.
10+
- Adds `ActionList.Heading` to be used for labelling children in an `ActionList`.
11+
- Adds `heading` slot to `ActionList` for adding headings that label internal lists correctly.
12+
13+
ActionList.Groups inside an ActionList generated inaccessible markup. Previous usage:
14+
15+
```
16+
<ActionList>
17+
<ActionList.Group title="Actions">
18+
<ActionList.Item>Create</ActionList.Item>
19+
<ActionList.Item>Read</ActionList.Item>
20+
<ActionList.Item>Update</ActionList.Item>
21+
<ActionList.Item>Delete</ActionList.Item>
22+
</ActionList.Group>
23+
<ActionList.Group>
24+
...
25+
</ActionList.Group>
26+
</ActionList>
27+
```
28+
29+
Instead, use `ActionList`s and stack them as needed.
30+
31+
```
32+
<div>
33+
<ActionList>
34+
<ActionList.Heading title="Actions" />
35+
<ActionList.Item>Create</ActionList.Item>
36+
<ActionList.Item>Read</ActionList.Item>
37+
<ActionList.Item>Update</ActionList.Item>
38+
<ActionList.Item>Delete</ActionList.Item>
39+
</ActionList>
40+
<ActionList>
41+
...
42+
</ActionList>
43+
</div>
44+
```
45+
346
## 35.25.1
447

548
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@primer/react",
3-
"version": "35.25.1",
3+
"version": "36.0.0",
44
"description": "An implementation of GitHub's Primer Design System using React",
55
"main": "lib/index.js",
66
"module": "lib-esm/index.js",

0 commit comments

Comments
 (0)