Skip to content

Dialogue component doesn't size to width specified by user #3675

@niole

Description

@niole

Problem Description

When I specify a width for the Dialogue component, it doesn't size to the width I want, but 75% percent of that. Also, if I specify a width, the component does not center itself accordingly. I am specifying the width via the style attribute e.g.:

<Dialogue
   style={{ width: 500 }}
/>

I realize that this style attribute corresponds more to the width of window.

As the background behind the modal always grays out the entire screen and not only the user specified width, it doesn't make sense for the style props's width key to correspond to the width of the window.

I find this unintuitive and think the usability of this component could be revised so that it corresponds more to how a user would approach it's customization.

I would include a screen shot, but I'm working under NDA.

Versions

  • Material-UI: 0.14.4
  • React: 0.14.7
  • Browser: Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: dialogChanges related to the dialog.scope: stylesSpecific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5.v0.x

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions