Skip to content

Commit 1f73bd0

Browse files
authored
docs(Dialog): enable F6 navigation & add footer Bar (#7807)
Closes #7804
1 parent bf63441 commit 1f73bd0

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

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

Lines changed: 16 additions & 10 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

@@ -47,21 +47,27 @@ export const Default: Story = {
4747
</Button>
4848
<Dialog
4949
{...args}
50+
data-sap-ui-fastnavgroup="true"
51+
className="contentPartNoPadding footerPartNoPadding"
5052
open={dialogOpen}
5153
onClose={(e) => {
5254
args.onClose(e);
5355
setDialogOpen(false);
5456
}}
5557
footer={
56-
<FlexBox justifyContent={FlexBoxJustifyContent.End} fitContainer style={{ paddingBlock: '0.25rem' }}>
57-
<Button
58-
onClick={() => {
59-
setDialogOpen(false);
60-
}}
61-
>
62-
Close
63-
</Button>
64-
</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+
/>
6571
}
6672
/>
6773
</>

0 commit comments

Comments
 (0)