-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dialogs having consistent look and behavior (#5500)
* Calendar dialogs properly scrollable * Send message dialog * Post dialogs fixed * Edit Callout * Innovation Flow Settings Dialog * Innovation flow settings form takes full width --------- Co-authored-by: Carlos Cano <[email protected]>
- Loading branch information
Showing
19 changed files
with
270 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import React, { FC } from 'react'; | ||
import React, { FC, forwardRef } from 'react'; | ||
import { Box, BoxProps } from '@mui/material'; | ||
|
||
export interface ActionsProps extends BoxProps {} | ||
|
||
export const Actions: FC<ActionsProps> = props => { | ||
return <Box display="flex" gap={1} alignItems="center" {...props} />; | ||
}; | ||
export const Actions: FC<ActionsProps> = forwardRef((props, ref) => { | ||
return <Box ref={ref} display="flex" gap={1} alignItems="center" {...props} />; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Components, Theme } from '@mui/material/styles'; | ||
import { gutters } from '../../../grid/utils'; | ||
|
||
const MuiDialogActions: Components<Theme>['MuiDialogActions'] = { | ||
styleOverrides: { | ||
root: ({ theme }) => ({ | ||
padding: gutters(0.5)(theme), | ||
}), | ||
}, | ||
}; | ||
|
||
export default MuiDialogActions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.