Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dialog] Discrepancy between documentation and reality #14190

Closed
bitfede opened this issue Jan 15, 2019 · 3 comments
Closed

[Dialog] Discrepancy between documentation and reality #14190

bitfede opened this issue Jan 15, 2019 · 3 comments
Labels
component: dialog This is the name of the generic UI component, not the React module! support: question Community support but can be turned into an improvement

Comments

@bitfede
Copy link

bitfede commented Jan 15, 2019

Found some nonsense that needs to be fixed:

On the official Material UI documentation it says we can use all the values from 'xs' to 'xl' . [ link: https://material-ui.com/demos/dialogs/ ]

but when I pass the prop 'xl' I get this error in my console:
screen shot 2019-01-15 at 7 33 53 pm

There's a guy in a previous issue that says he added support for 'lg' back in August 2018 ... so is it my fault and I do need to update the material-ui dependency?

Do I need to manually put a pixel width to the modal to get rid of that annoying error and make it large like the examples you have on the docs?

Also why would you not support bigger screen sizes for modal maxWidth? Why are we forced to use small modals and we cannot use bigger ones? Computers and laptops are still around in this world no?

thank you so much for clearing my mind, I'm pretty confused by this whole maxWidth issue...

@eps1lon
Copy link
Member

eps1lon commented Jan 15, 2019

This was added in @material-ui/[email protected]. The page always documents the latest version. For old docs see https://material-ui.com/versions/.

Also why would you not support bigger screen sizes for modal maxWidth? Why are we forced to use small modals and we cannot use bigger ones? Computers and laptops are still around in this world no?

We do support it. Just not in older version since we try to follow semver. We also do not backport features to previous major version.

@oliviertassinari oliviertassinari added component: dialog This is the name of the generic UI component, not the React module! support: question Community support but can be turned into an improvement labels Jan 15, 2019
@TheMoonDawg
Copy link
Contributor

Are you sure you didn't install the beta version of Material-UI instead of the new scoped package?

If your package.json says material-ui instead of @material-ui/core, you're on the Beta version, and you'll have to install the scoped package to get the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: dialog This is the name of the generic UI component, not the React module! support: question Community support but can be turned into an improvement
Projects
None yet
Development

No branches or pull requests

4 participants