Skip to content

Commit a9f9c41

Browse files
committed
replace FlexBox with Bar in footer
1 parent bd92ee9 commit a9f9c41

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

packages/main/src/webComponents/Dialog/Dialog.stories.tsx

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { isChromatic } from '@sb/utils.js';
22
import type { Meta, StoryObj } from '@storybook/react-vite';
3-
import { FlexBox, FlexBoxJustifyContent } from '@ui5/webcomponents-react';
43
import { useEffect, useState } from 'react';
4+
import { Bar } from '../Bar/index.js';
55
import { Button, List, ListItemStandard } from '../index.js';
66
import { Dialog } from './index.js';
77

@@ -48,23 +48,26 @@ export const Default: Story = {
4848
<Dialog
4949
{...args}
5050
data-sap-ui-fastnavgroup="true"
51-
className="contentPartNoPadding"
51+
className="contentPartNoPadding footerPartNoPadding"
5252
open={dialogOpen}
5353
onClose={(e) => {
5454
args.onClose(e);
5555
setDialogOpen(false);
5656
}}
5757
footer={
58-
<FlexBox justifyContent={FlexBoxJustifyContent.End} fitContainer style={{ paddingBlock: '0.25rem' }}>
59-
<Button
60-
data-sap-ui-fastnavgroup="true"
61-
onClick={() => {
62-
setDialogOpen(false);
63-
}}
64-
>
65-
Close
66-
</Button>
67-
</FlexBox>
58+
<Bar
59+
design="Footer"
60+
endContent={
61+
<Button
62+
data-sap-ui-fastnavgroup="true"
63+
onClick={() => {
64+
setDialogOpen(false);
65+
}}
66+
>
67+
Close
68+
</Button>
69+
}
70+
/>
6871
}
6972
/>
7073
</>

0 commit comments

Comments
 (0)