Skip to content

Commit 775944d

Browse files
committed
fix(nav): Rename to multi-content card
1 parent 876df56 commit 775944d

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

packages/module/patternfly-docs/content/extensions/component-groups/examples/MultiContentCard/MultiContentCard.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
section: Component groups
33
subsection: Content containers
4-
id: Multi content card
4+
id: Multi-content card
55
source: react
66
propComponents: ['MultiContentCard']
77
sourceLink: https://github.com/patternfly/react-component-groups/blob/main/packages/module/patternfly-docs/content/extensions/component-groups/examples/MultiContentCard/MultiContentCard.md
@@ -12,43 +12,43 @@ import { ArrowRightIcon, BellIcon, CogIcon, EllipsisVIcon, LockIcon } from '@pat
1212
import { createUseStyles } from 'react-jss';
1313
import clsx from 'clsx';
1414

15-
A **multi content card** component allows to display multiple card components in a single layout. To further customize this layout, you can also utilize all properties of the [card component](/components/card), with the exception of `children` and `title`.
15+
A **multi-content card** component allows to display multiple card components in a single layout. To further customize this layout, you can also utilize all properties of the [card component](/components/card), with the exception of `children` and `title`.
1616

1717
## Examples
1818

19-
### Basic multi content card
19+
### Basic multi-content card
2020

21-
To display a basic multi content an array of content cards has to be passed using the `cards` property. It is recommended to use regular [card components](/components/card) in the content.
21+
To display a basic multi-content an array of content cards has to be passed using the `cards` property. It is recommended to use regular [card components](/components/card) in the content.
2222

2323
```js file="./MultiContentCardExample.tsx"
2424

2525
```
2626

27-
### Expandable multi content card
27+
### Expandable multi-content card
2828

29-
To make the multi content card expandable, pass `isExpandable` flag together with `toggleText` or `toggleContent` property. Default expansion state can be adjusted using `defaultExpanded` property.
29+
To make the multi-content card expandable, pass `isExpandable` flag together with `toggleText` or `toggleContent` property. Default expansion state can be adjusted using `defaultExpanded` property.
3030

3131
```js file="./MultiContentCardExpandableExample.tsx"
3232

3333
```
3434

35-
### Expandable multi content card with actions and labels
35+
### Expandable multi-content card with actions and labels
3636

37-
Actions can be displayed in the multi content card heading using `actions` property. Also, you can make use of [label components](/components/label) for your card content.
37+
Actions can be displayed in the multi-content card heading using `actions` property. Also, you can make use of [label components](/components/label) for your card content.
3838

3939
```js file="./MultiContentCardExpandableActionsExample.tsx"
4040

4141
```
4242

43-
### Expandable multi content card with dividers
43+
### Expandable multi-content card with dividers
4444

4545
Dividers between all cards in the content can be shown using `withDividers` flag.
4646

4747
```js file="./MultiContentCardExpandableDividerExample.tsx"
4848

4949
```
5050

51-
### Expandable multi content card with single dividers
51+
### Expandable multi-content card with single dividers
5252

5353
To enable a divider just for a single card, use `dividerVariant` property passed to the `cards` array.
5454

packages/module/src/MultiContentCard/MultiContentCard.test.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const cards = [
8686
];
8787

8888
describe('MultiContentCard component', () => {
89-
it('should render basic multi content card', () => {
89+
it('should render basic multi-content card', () => {
9090
const { container } = render(<MultiContentCard cards={cards} />);
9191
expect(screen.getByText('Getting Started')).toBeInTheDocument();
9292
expect(screen.getByText('Next Steps')).toBeInTheDocument();
@@ -103,7 +103,7 @@ describe('MultiContentCard component', () => {
103103
expect(container.firstChild).toMatchSnapshot();
104104
});
105105

106-
it('should render expandable multi content card - expanded', () => {
106+
it('should render expandable multi-content card - expanded', () => {
107107
const { container } = render(
108108
<MultiContentCard
109109
isExpandable
@@ -117,7 +117,7 @@ describe('MultiContentCard component', () => {
117117
expect(container.firstChild).toMatchSnapshot();
118118
});
119119

120-
it('should render expandable multi content card - collapsed', () => {
120+
it('should render expandable multi-content card - collapsed', () => {
121121
const { container } = render(
122122
<MultiContentCard
123123
isExpandable
@@ -132,7 +132,7 @@ describe('MultiContentCard component', () => {
132132
expect(container.firstChild).toMatchSnapshot();
133133
});
134134

135-
it('should render expandable multi content card - with actions', () => {
135+
it('should render expandable multi-content card - with actions', () => {
136136
const { container } = render(
137137
<MultiContentCard
138138
isExpandable
@@ -171,15 +171,15 @@ describe('MultiContentCard component', () => {
171171
expect(container.firstChild).toMatchSnapshot();
172172
});
173173

174-
it('should render multi content card with dividers', () => {
174+
it('should render multi-content card with dividers', () => {
175175
const { container } = render(<MultiContentCard cards={cards} withDividers />);
176176

177177
expect(screen.getAllByRole('separator')).toHaveLength(2);
178178

179179
expect(container.firstChild).toMatchSnapshot();
180180
});
181181

182-
it('should render multi content card with a single divider', () => {
182+
it('should render multi-content card with a single divider', () => {
183183
const { container } = render(<MultiContentCard cards={[ cards[0], cards[1], { content: cards[2], dividerVariant: MultiContentCardDividerVariant.left } ]} />);
184184

185185
expect(screen.getAllByRole('separator')).toHaveLength(1);

packages/module/src/MultiContentCard/__snapshots__/MultiContentCard.test.tsx.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`MultiContentCard component should render basic multi content card 1`] = `
3+
exports[`MultiContentCard component should render basic multi-content card 1`] = `
44
<div
55
class="pf-v6-c-card pf-m-expanded"
66
data-ouia-component-id="MultiContentCard"
@@ -385,7 +385,7 @@ exports[`MultiContentCard component should render basic multi content card 1`] =
385385
</div>
386386
`;
387387

388-
exports[`MultiContentCard component should render expandable multi content card - collapsed 1`] = `
388+
exports[`MultiContentCard component should render expandable multi-content card - collapsed 1`] = `
389389
<div
390390
class="pf-v6-c-card"
391391
data-ouia-component-id="MultiContentCard"
@@ -454,7 +454,7 @@ exports[`MultiContentCard component should render expandable multi content card
454454
</div>
455455
`;
456456

457-
exports[`MultiContentCard component should render expandable multi content card - expanded 1`] = `
457+
exports[`MultiContentCard component should render expandable multi-content card - expanded 1`] = `
458458
<div
459459
class="pf-v6-c-card pf-m-expanded"
460460
data-ouia-component-id="MultiContentCard"
@@ -902,7 +902,7 @@ exports[`MultiContentCard component should render expandable multi content card
902902
</div>
903903
`;
904904

905-
exports[`MultiContentCard component should render expandable multi content card - with actions 1`] = `
905+
exports[`MultiContentCard component should render expandable multi-content card - with actions 1`] = `
906906
<div
907907
class="pf-v6-c-card"
908908
data-ouia-component-id="MultiContentCard"
@@ -999,7 +999,7 @@ exports[`MultiContentCard component should render expandable multi content card
999999
</div>
10001000
`;
10011001

1002-
exports[`MultiContentCard component should render multi content card with a single divider 1`] = `
1002+
exports[`MultiContentCard component should render multi-content card with a single divider 1`] = `
10031003
<div
10041004
class="pf-v6-c-card pf-m-expanded"
10051005
data-ouia-component-id="MultiContentCard"
@@ -1387,7 +1387,7 @@ exports[`MultiContentCard component should render multi content card with a sing
13871387
</div>
13881388
`;
13891389

1390-
exports[`MultiContentCard component should render multi content card with dividers 1`] = `
1390+
exports[`MultiContentCard component should render multi-content card with dividers 1`] = `
13911391
<div
13921392
class="pf-v6-c-card pf-m-expanded"
13931393
data-ouia-component-id="MultiContentCard"

0 commit comments

Comments
 (0)