Skip to content

Commit 1bd65db

Browse files
(Modal): move where to apply margin classnames
1 parent 7b1ef61 commit 1bd65db

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

stories/Modal.stories.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const LOOKUP_DATA = [
5252
];
5353

5454
const modalContent = (
55-
<div className='slds-p-around_small'>
55+
<>
5656
<p>
5757
Sit nulla est ex deserunt exercitation anim occaecat. Nostrud ullamco
5858
deserunt aute id consequat veniam incididunt duis in sint irure nisi.
@@ -68,7 +68,7 @@ const modalContent = (
6868
Labore esse esse cupidatat amet velit id elit consequat minim ullamco
6969
mollit enim excepteur ea.
7070
</p>
71-
</div>
71+
</>
7272
);
7373

7474
const footerButtons = (
@@ -116,6 +116,7 @@ export const ControlledWithKnobs: StoryObj<StoryProps> = {
116116
childProps: {
117117
header: {},
118118
content: {
119+
className: 'slds-p-around_small',
119120
children: modalContent,
120121
},
121122
footer: {
@@ -147,6 +148,7 @@ export const Default: StoryObj<StoryProps> = {
147148
closeButton: true,
148149
},
149150
content: {
151+
className: 'slds-p-around_small',
150152
children: modalContent,
151153
},
152154
footer: {
@@ -176,6 +178,7 @@ export const Large: StoryObj<StoryProps> = {
176178
closeButton: true,
177179
},
178180
content: {
181+
className: 'slds-p-around_small',
179182
children: modalContent,
180183
},
181184
footer: {
@@ -205,6 +208,7 @@ export const WithTagline: StoryObj<StoryProps> = {
205208
closeButton: true,
206209
},
207210
content: {
211+
className: 'slds-p-around_small',
208212
children: modalContent,
209213
},
210214
footer: {
@@ -233,6 +237,7 @@ export const FooterDirectional: StoryObj<StoryProps> = {
233237
closeButton: true,
234238
},
235239
content: {
240+
className: 'slds-p-around_small',
236241
children: modalContent,
237242
},
238243
footer: {

0 commit comments

Comments
 (0)