Skip to content

Commit 8319437

Browse files
authored
Merge branch 'main' into siddharthkp/actionlist-checkbox-a11y
2 parents a97f7ec + ebaba02 commit 8319437

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

docs/content/ActionList2.mdx

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ import {ActionList} from '@primer/components/drafts'
5555

5656
## Examples
5757

58-
## Minimal example
58+
### Minimal example
5959

6060
```javascript live noinline
6161
// import {ActionList} from '@primer/components/drafts'
@@ -74,7 +74,7 @@ render(
7474

7575
<br />
7676

77-
## With Leading Visual
77+
### With leading visual
7878

7979
Leading visuals are optional and appear at the start of an item. They can be octicons, avatars, and other custom visuals that fit a small area.
8080

@@ -103,7 +103,7 @@ render(
103103
104104
<br />
105105
106-
## With Trailing Visual
106+
### With trailing visual
107107
108108
Trailing visual and trailing text can display auxiliary information. They're placed at the right of the item, and can denote status, keyboard shortcuts, or be used to set expectations about what the action does.
109109
@@ -135,7 +135,7 @@ render(
135135

136136
<br />
137137

138-
## With Description and Dividers
138+
### With description and dividers
139139

140140
Item dividers allow users to parse heavier amounts of information. They're placed between items and are useful in complex lists, particularly when descriptions or multi-line text is present.
141141

@@ -170,7 +170,7 @@ render(
170170
)
171171
```
172172

173-
## With Links
173+
### With links
174174

175175
When you want to add links to the List instead of actions, use `ActionList.LinkItem`
176176

@@ -209,7 +209,7 @@ render(
209209
210210
<br />
211211
212-
## With Groups
212+
### With groups
213213
214214
```javascript live noinline
215215
// import {ActionList} from '@primer/components/drafts'
@@ -271,7 +271,7 @@ render(<SelectFields />)
271271

272272
## Props / API reference
273273

274-
## ActionList
274+
### ActionList
275275

276276
| Name | Type | Default | Description |
277277
| :--------------- | :------------------------------------------------------------------------------------------------ | :-----: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -284,7 +284,7 @@ render(<SelectFields />)
284284

285285
<br />
286286

287-
## ActionList.Item
287+
### ActionList.Item
288288

289289
| Name | Type | Default | Description |
290290
| :--------- | :------------------------------------------------------------------------------------------------------------ | :---------: | :----------------------------------------------------------------------------------------------- |
@@ -298,7 +298,7 @@ render(<SelectFields />)
298298

299299
<br />
300300

301-
## ActionList.LinkItem
301+
### ActionList.LinkItem
302302

303303
| Name | Type | Default | Description |
304304
| :-------------------------------------------------- | :------------------------------------------------------------------------------------------------------------ | :-----: | :------------------------------------------------------------- |
@@ -308,14 +308,14 @@ render(<SelectFields />)
308308

309309
<br />
310310

311-
## ActionList.LeadingVisual
311+
### ActionList.LeadingVisual
312312

313313
| Name | Type | Default | Description |
314314
| :--------- | :------------------ | :-----: | :------------------------------------------------------------- |
315315
| children\* | `React.ReactNode` - | - | Required. Icon (or similar) positioned before `Item` text. |
316316
| sx | sxProp | - | Optional. See guide to [Overriding styles](/overriding-styles) |
317317

318-
## ActionList.TrailingVisual
318+
### ActionList.TrailingVisual
319319

320320
| Name | Type | Default | Description |
321321
| :--------- | :------------------ | :-----: | :------------------------------------------------------------- |
@@ -324,7 +324,7 @@ render(<SelectFields />)
324324

325325
<br />
326326

327-
## ActionList.Description
327+
### ActionList.Description
328328

329329
| Name | Type | Default | Description |
330330
| :--------- | :---------------------- | :--------: | :-------------------------------------------------------------------------------------------------------------------------------- |
@@ -334,7 +334,7 @@ render(<SelectFields />)
334334

335335
<br />
336336

337-
## ActionList.Group
337+
### ActionList.Group
338338

339339
| Name | Type | Default | Description |
340340
| :--------------- | :------------------------------------------- | :--------: | :--------------------------------------------------------------------------------------------------------------------------------------- |
@@ -348,13 +348,11 @@ render(<SelectFields />)
348348

349349
## Further reading
350350

351-
[Interface guidelines: Action List](https://primer.style/design/components/action-list)
351+
- [Interface guidelines: Action List](https://primer.style/design/components/action-list)
352352

353353
<br />
354354

355355
## Related components
356356

357357
- [ActionMenu](/ActionMenu)
358358
- [SelectPanel](/SelectPanel)
359-
360-
<br />

0 commit comments

Comments
 (0)