I am trying to apply some reasonably simple styles to my component <Dialog>. In this case, I'm trying to go around corners with a border radius. Here are some simple inline styles that I would like to use to override the <Dialog>default styles :
let overrideStyles = {
padding: 0,
margin: 0,
borderRadiusTopLeft: '4px',
borderRadiusTopRight: '4px',
};
<Dialog>provides a wide range of options for overriding internal styles. These include bodyStyle, contentStyle, style, titleStyle, overlayStyleand actionsContainerStyle. I decided to try applying these styles to everyone.
<Dialog
bodyStyle={overrideStyles}
contentStyle={overrideStyles}
style={overrideStyles}
titleStyle={overrideStyles}
overlayStyle={overrideStyles}
actionsContainerStyle={overrideStyles}
modal={overrideStyles}
>
<TestPanel/>
</Dialog>
When I stand mine TestPanel, it looks like this:

Pay attention to the corners where my border radius was not applied ... I opened the inspector and noticed the following div:

div, , . ...
Material UI <Dialog> , CSS ?