Skip to content

Commit 94c20b9

Browse files
Version Packages
1 parent b382944 commit 94c20b9

6 files changed

Lines changed: 24 additions & 23 deletions

File tree

.changeset/action-list-group-heading-trailing-action.md

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

examples/codesandbox/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@types/react": "^18.3.11",
1818
"@types/react-dom": "^18.3.0",
1919
"@vitejs/plugin-react": "^4.3.3",
20-
"@primer/react": "38.23.0",
20+
"@primer/react": "38.24.0",
2121
"@primer/styled-react": "1.0.8",
2222
"styled-components": "5.x",
2323
"typescript": "^6.0.3",

examples/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"type-check": "tsc --noEmit"
1111
},
1212
"dependencies": {
13-
"@primer/react": "38.23.0",
13+
"@primer/react": "38.24.0",
1414
"@primer/styled-react": "1.0.8",
1515
"next": "^16.1.7",
1616
"react": "^19.2.0",

examples/theming/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"dependencies": {
1313
"@primer/octicons-react": "^19.21.0",
14-
"@primer/react": "38.23.0",
14+
"@primer/react": "38.24.0",
1515
"@primer/styled-react": "1.0.8",
1616
"clsx": "^2.1.1",
1717
"next": "^16.1.7",

packages/react/CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# @primer/react
22

3+
## 38.24.0
4+
5+
### Minor Changes
6+
7+
- [#7829](https://github.com/primer/react/pull/7829) [`228019c`](https://github.com/primer/react/commit/228019cac474e94558e571c325692d3b40ca4488) Thanks [@adierkens](https://github.com/adierkens)! - ActionList: Add `ActionList.GroupHeading.TrailingAction` for header-level actions on grouped lists. Closes #2043.
8+
9+
When the `primer_react_action_list_group_heading_trailing_action` feature flag is enabled, you can place an `ActionList.GroupHeading.TrailingAction` (a small invisible `IconButton`) inside `ActionList.GroupHeading` to render a uniform square action target next to the group's heading. Only supported inside an `ActionList` with the default `list` role — using it inside `ActionMenu` or with `role="listbox"` will throw.
10+
11+
```tsx
12+
<ActionList>
13+
<ActionList.Group>
14+
<ActionList.GroupHeading as="h3">
15+
Custom fields
16+
<ActionList.GroupHeading.TrailingAction label="New field" icon={PlusIcon} />
17+
</ActionList.GroupHeading>
18+
<ActionList.Item>...</ActionList.Item>
19+
</ActionList.Group>
20+
</ActionList>
21+
```
22+
323
## 38.23.0
424

525
### Minor Changes

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@primer/react",
33
"type": "module",
4-
"version": "38.23.0",
4+
"version": "38.24.0",
55
"description": "An implementation of GitHub's Primer Design System using React",
66
"main": "./dist/index.js",
77
"module": "./dist/index.js",

0 commit comments

Comments
 (0)