You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(button): specify danger is not supported for icon only buttons (#14307)
* docs(button): specify danger is not supported for icon only buttons
* fix(mdx): reformat doctoc comment to be on single line for mdx2 compatibility
* docs(modal): fix mdx2 formatting in .mdx files
---------
Co-authored-by: TJ Egan <tw15egan@gmail.com>
{/* <!-- START doctoc generated TOC please keep comment here to allow auto update -->
8
-
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> */}
7
+
{/* <!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> */}
9
8
10
9
-[Overview](#overview)
11
10
-[Component API](#component-api)
@@ -15,7 +14,10 @@ import { ArgsTable } from '@storybook/blocks';
15
14
16
15
## Overview
17
16
18
-
A `ComboButton` can be used to offer additional, secondary actions in a disclosed list next to the primary action. These additional actions must be `MenuItem`s passed as `children`. The primary action's label is passed as `props.label`.
17
+
A `ComboButton` can be used to offer additional, secondary actions in a
18
+
disclosed list next to the primary action. These additional actions must be
19
+
`MenuItem`s passed as `children`. The primary action's label is passed as
Copy file name to clipboardExpand all lines: packages/react/src/components/ContainedList/ContainedList.mdx
+63-58Lines changed: 63 additions & 58 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,8 @@ import * as ContainedListStories from './ContainedList.stories.js';
9
9
10
10
## Table of Contents
11
11
12
-
{/* <!-- START doctoc generated TOC please keep comment here to allow auto update -->
13
-
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> */}
12
+
{/* <!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> */}
13
+
14
14
## Table of Contents
15
15
16
16
-[Overview](#overview)
@@ -31,68 +31,76 @@ import * as ContainedListStories from './ContainedList.stories.js';
31
31
### Search
32
32
33
33
#### Expandable Search:
34
-
Within the Contained List you can pass in an `ExpandableSearch` component within the `action` prop as seen below.
35
-
The `ExpandableSearch` will give you the capability to expand and collapse the search bar within the title.
36
-
However, we do not support passing in the `ExpandableSearch` within the title action prop while passing in the `Search` component
37
-
as a child at the same time. If this happens, the `ExpandableSearch` in the title will override any other `Search` passed in as a child.
38
-
To prevent this potential conflict, we have added funtionality to support both designs and both use cases. Please see [Persistent Search](#persistent-search) docs below.
34
+
35
+
Within the Contained List you can pass in an `ExpandableSearch` component within
36
+
the `action` prop as seen below. The `ExpandableSearch` will give you the
37
+
capability to expand and collapse the search bar within the title. However, we
38
+
do not support passing in the `ExpandableSearch` within the title action prop
39
+
while passing in the `Search` component as a child at the same time. If this
40
+
happens, the `ExpandableSearch` in the title will override any other `Search`
41
+
passed in as a child. To prevent this potential conflict, we have added
42
+
funtionality to support both designs and both use cases. Please see
We have added in the capability to pass down the `Search` component as a child of `ContainedList`.
90
-
The `Search` component itself is not a prop but does render with specific styling such that the `Search` bar appears below the Contained List title as opposed to rendering inline.
91
-
If you would like the Search to render inline to the Contained List title, please see the [Expandable Search](#expandable-search) docs above
92
-
The `Search` component will also remain persistent under the title, so that it remains visible on scroll, when there are many list items passed in.
93
93
94
-
```js
94
+
We have added in the capability to pass down the `Search` component as a child
95
+
of `ContainedList`. The `Search` component itself is not a prop but does render
96
+
with specific styling such that the `Search` bar appears below the Contained
97
+
List title as opposed to rendering inline. If you would like the Search to
98
+
render inline to the Contained List title, please see the
99
+
[Expandable Search](#expandable-search) docs above The `Search` component will
100
+
also remain persistent under the title, so that it remains visible on scroll,
0 commit comments