-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[material-ui][docs] Missing icon and installation instructions in new landing page template #41043
Comments
This issue makes me think of #14604. I could see this as a single file, copy & paste, boom, it works. https://mui.com/material-ui/getting-started/templates/landing-page/ is heavy.
Wait what. We can't use the lab Masonry component for landing pages, it wasn't built to be compatible with it. Why it doesn't work? Because it's layout shift guarantee. See #36673 (comment). That Masonry component we built is for the kind you use for https://react-grid-layout.github.io/react-grid-layout/examples/0-showcase.html use cases: dashboards. In the design of this Masonry component, we might have shot ourselves in the foot by placing too much value in a11y and not enough having something that works well for non-a11y use cases. I think we could give up on having a correct DOM order. It's what I did in the end in #37975 but who cares? |
@zanivan I guess the simplest course of action for now is removing the Material Design icon and swapping out the Masonry component for a Grid. 👍 |
Yep, I think it'll do the trick. I'l open a PR :)
It's important to have this mentioned on the docs then. Especially since the demos aren't exactly related to dashboards. |
Steps to reproduce
No response
Current behavior
I'm tinkering around with https://github.com/mui/material-ui/tree/master/docs/data/material/getting-started/templates/landing-page, and as I'm getting set up I'm finding it breaks in two ways:
@mui/lab
(needed for the Masonry component)LandingPage.js
andLandingPage.tsx
try to importSvgMaterialDesign
from'docs/src/icons/SvgMaterialDesign'
which doesn't exist outside of thematerial-ui
repoExpected behavior
I should be able to follow the instructions in the README and install the template and all of its dependencies with no errors. Step 2 in the README should include
@mui/lab
, and the template folder should either include the Material Design icon or else be revised to remove it.Context
No response
Your environment
npx @mui/envinfo
Search keywords: landing page
The text was updated successfully, but these errors were encountered: