Skip to content

Commit 956dee9

Browse files
committed
chore: change card body to card section
1 parent 4f7d3ae commit 956dee9

File tree

7 files changed

+14
-13
lines changed

7 files changed

+14
-13
lines changed

src/components/InfoPopover/__snapshots__/index.test.jsx.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ exports[`Info Popover Component snapshot 1`] = `
66
overlay={
77
<Popover
88
className="overlay-help-popover"
9-
id="popover"
9+
id="info-popover"
1010
>
1111
<Popover.Content>
1212
<div>

src/components/InfoPopover/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const InfoPopover = ({ onClick, children, intl }) => (
2323
placement="right-end"
2424
flip
2525
overlay={(
26-
<Popover id="popover" className="overlay-help-popover">
26+
<Popover id="info-popover" className="overlay-help-popover">
2727
<Popover.Content>{children}</Popover.Content>
2828
</Popover>
2929
)}

src/containers/ResponseDisplay/__snapshots__/index.test.jsx.snap

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ exports[`ResponseDisplay component snapshot file upload disable with valid respo
55
className="response-display"
66
>
77
<Card>
8-
<Card.Body
8+
<Card.Section
99
className="response-display-text-content"
1010
>
1111
parsed html (sanitized (some text response here))
12-
</Card.Body>
12+
</Card.Section>
1313
</Card>
1414
</div>
1515
`;
@@ -64,11 +64,11 @@ exports[`ResponseDisplay component snapshot file upload enable with valid respon
6464
}
6565
/>
6666
<Card>
67-
<Card.Body
67+
<Card.Section
6868
className="response-display-text-content"
6969
>
7070
parsed html (sanitized (some text response here))
71-
</Card.Body>
71+
</Card.Section>
7272
</Card>
7373
</div>
7474
`;

src/containers/ResponseDisplay/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class ResponseDisplay extends React.Component {
4848
/* eslint-disable react/no-array-index-key */
4949
this.textContents.map((textContent, index) => (
5050
<Card key={index}>
51-
<Card.Body className="response-display-text-content">{textContent}</Card.Body>
51+
<Card.Section className="response-display-text-content">{textContent}</Card.Section>
5252
</Card>
5353
))
5454
}

src/containers/Rubric/__snapshots__/index.test.jsx.snap

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exports[`Rubric Container shapshot: hide footer 1`] = `
55
<Card
66
className="grading-rubric-card"
77
>
8-
<Card.Body
8+
<Card.Section
99
className="grading-rubric-body"
1010
>
1111
<h3>
@@ -28,7 +28,7 @@ exports[`Rubric Container shapshot: hide footer 1`] = `
2828
/>
2929
<hr />
3030
<RubricFeedback />
31-
</Card.Body>
31+
</Card.Section>
3232
</Card>
3333
<DemoAlert
3434
prop="demo-alert-props"
@@ -41,7 +41,7 @@ exports[`Rubric Container snapshot: show footer 1`] = `
4141
<Card
4242
className="grading-rubric-card"
4343
>
44-
<Card.Body
44+
<Card.Section
4545
className="grading-rubric-body"
4646
>
4747
<h3>
@@ -64,7 +64,7 @@ exports[`Rubric Container snapshot: show footer 1`] = `
6464
/>
6565
<hr />
6666
<RubricFeedback />
67-
</Card.Body>
67+
</Card.Section>
6868
<div
6969
className="grading-rubric-footer"
7070
>

src/containers/Rubric/index.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ export const Rubric = ({ intl }) => {
2929
return (
3030
<>
3131
<Card className="grading-rubric-card">
32-
<Card.Body className="grading-rubric-body">
32+
<Card.Section className="grading-rubric-body">
3333
<h3>{intl.formatMessage(messages.rubric)}</h3>
3434
<hr className="m-2.5" />
3535
{criteria.map(props => <CriterionContainer {...props} />)}
3636
<hr />
3737
<RubricFeedback />
38-
</Card.Body>
38+
</Card.Section>
3939
{showFooter && (
4040
<div className="grading-rubric-footer">
4141
<StatefulButton

src/setupTest.js

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jest.mock('@edx/paragon', () => jest.requireActual('testUtils').mockNestedCompon
3838
Button: 'Button',
3939
Card: {
4040
Body: 'Card.Body',
41+
Section: 'Card.Section',
4142
Footer: 'Card.Footer',
4243
},
4344
Col: 'Col',

0 commit comments

Comments
 (0)