File tree Expand file tree Collapse file tree 1 file changed +15
-12
lines changed
packages/main/src/webComponents/Dialog Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change 11import { isChromatic } from '@sb/utils.js' ;
22import type { Meta , StoryObj } from '@storybook/react-vite' ;
3- import { FlexBox , FlexBoxJustifyContent } from '@ui5/webcomponents-react' ;
43import { useEffect , useState } from 'react' ;
4+ import { Bar } from '../Bar/index.js' ;
55import { Button , List , ListItemStandard } from '../index.js' ;
66import { 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 </ >
You can’t perform that action at this time.
0 commit comments