Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions packages/main/src/webComponents/Dialog/Dialog.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { isChromatic } from '@sb/utils.js';
import type { Meta, StoryObj } from '@storybook/react-vite';
import { FlexBox, FlexBoxJustifyContent } from '@ui5/webcomponents-react';
import { useEffect, useState } from 'react';
import { Bar } from '../Bar/index.js';
import { Button, List, ListItemStandard } from '../index.js';
import { Dialog } from './index.js';

Expand Down Expand Up @@ -47,21 +47,27 @@ export const Default: Story = {
</Button>
<Dialog
{...args}
data-sap-ui-fastnavgroup="true"
className="contentPartNoPadding footerPartNoPadding"
open={dialogOpen}
onClose={(e) => {
args.onClose(e);
setDialogOpen(false);
}}
footer={
<FlexBox justifyContent={FlexBoxJustifyContent.End} fitContainer style={{ paddingBlock: '0.25rem' }}>
<Button
onClick={() => {
setDialogOpen(false);
}}
>
Close
</Button>
</FlexBox>
<Bar
design="Footer"
endContent={
<Button
data-sap-ui-fastnavgroup="true"
onClick={() => {
setDialogOpen(false);
}}
>
Close
</Button>
}
/>
}
/>
</>
Expand Down
Loading