File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed
packages/main/src/webComponents/Dialog Expand file tree Collapse file tree 1 file changed +16
-10
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
@@ -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 </ >
You can’t perform that action at this time.
0 commit comments