Im using Material UI with React and have a dialog which comes up when a button is tapped. The button is present in a table which in turn is presented over a Paper component. The issue is when I use the dialog with default styling, the background turns black. I tried making the styling as transparent but now Im getting a gray artifact behind dialog. The original dialog with default styling:
The dialog with transparent attributes:
<Dialog
title="ALERT - Confirm Action? "
modal={false}
overlayStyle={{backgroundColor: 'transparent'}}
bodyStyle={{margin:0, padding:0}}
actions={
<div>
<FlatButton
label="Cancel"
primary={true}
onClick={this.handleCloseTwo}
/>
<FlatButton
label="Submit"
type="submit"
primary={true}
keyboardFocused={true}
onClick={() => {
this.setState({ dialogTwo: false });
}}
/>
</div>
}
open={this.state.dialogTwo}
>
</Dialog>