In https://github.com/mui-org/material-ui/issues/6128, the use case of having a
And there's another (probably related) problem that can also be seen from the same codesandbox.io example above: The paddingTop: 0, but it doesn't when it's inside the
@Philipp91 This should do it:
<Dialog open={true} onRequestClose={() => {}} style={{ maxHeight: 250 }}>
<DialogTitle>{"Use Google's location service?"}</DialogTitle>
<form
style={{
display: "flex",
flexDirection: "column"
}}
>
<DialogContent>
<TextField placeholder="Name Surname" fullWidth={true} />
</DialogContent>
<DialogActions>
<Button>Disagree</Button>
<Button type="submit">Agree</Button>
</DialogActions>
</form>
</Dialog>
Thanks!
And <DialogContent style={{paddingTop: 0}}> to fix the spacing issue.
Most helpful comment
@Philipp91 This should do it:
https://codesandbox.io/s/2zqow476w0