Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Apr 25, 2023
1 parent f3ec37e commit ef2bfc0
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 40 deletions.
39 changes: 0 additions & 39 deletions .changeset/modern-coins-destroy.md

This file was deleted.

43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,48 @@
# @primer/components

## 36.0.0

### Major Changes

- [#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.

- Removes `ActionList.Group`.
- Adds `ActionList.Heading` to be used for labelling children in an `ActionList`.
- Adds `heading` slot to `ActionList` for adding headings that label internal lists correctly.

ActionList.Groups inside an ActionList generated inaccessible markup. Previous usage:

```
<ActionList>
<ActionList.Group title="Actions">
<ActionList.Item>Create</ActionList.Item>
<ActionList.Item>Read</ActionList.Item>
<ActionList.Item>Update</ActionList.Item>
<ActionList.Item>Delete</ActionList.Item>
</ActionList.Group>
<ActionList.Group>
...
</ActionList.Group>
</ActionList>
```

Instead, use `ActionList`s and stack them as needed.

```
<div>
<ActionList>
<ActionList.Heading title="Actions" />
<ActionList.Item>Create</ActionList.Item>
<ActionList.Item>Read</ActionList.Item>
<ActionList.Item>Update</ActionList.Item>
<ActionList.Item>Delete</ActionList.Item>
</ActionList>
<ActionList>
...
</ActionList>
</div>
```

## 35.25.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@primer/react",
"version": "35.25.1",
"version": "36.0.0",
"description": "An implementation of GitHub's Primer Design System using React",
"main": "lib/index.js",
"module": "lib-esm/index.js",
Expand Down

0 comments on commit ef2bfc0

Please sign in to comment.