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

[material-ui][docs] Fix the icon preview dialog #40863

Merged
merged 3 commits into from
Jan 31, 2024

Conversation

danilo-leal
Copy link
Contributor

@danilo-leal danilo-leal commented Jan 30, 2024

Fix #40847

@oliviertassinari, it seems that your change in #40449, removing the Box in favor of a plain <div>, broke the icon display in the preview dialog. Ended up just putting that back here, as well as adding some tiny design tweaks.

@danilo-leal danilo-leal added docs Improvements or additions to the documentation package: material-ui Specific to @mui/material labels Jan 30, 2024
@danilo-leal danilo-leal self-assigned this Jan 30, 2024
@mui-bot
Copy link

mui-bot commented Jan 30, 2024

Netlify deploy preview

https://deploy-preview-40863--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against b73d04d

@oliviertassinari oliviertassinari added regression A bug, but worse bug 🐛 Something doesn't work labels Jan 31, 2024
@oliviertassinari
Copy link
Member

oliviertassinari commented Jan 31, 2024

I pushed a new commit to fix the build, and also not to use styled(Box).

@brijeshb42 It makes me realize that we have no docs about the as prop in MUI System: https://mui.com/system/styled/. I had forgotten how this works but with https://emotion.sh/docs/styled#as-prop and https://styled-components.com/docs/api#as-polymorphic-prop and checking the source, could have it work.

If we want to be serious about MUI System, we will need to add a lot more documentation (but once we get MUI System to work as its own thing, until then, probably not the right order to allocate time).

@danilo-leal danilo-leal enabled auto-merge (squash) January 31, 2024 12:45
@danilo-leal
Copy link
Contributor Author

@oliviertassinari or @DiegoAndai, I'd appreciate a review here! It'd be nice to get this one out with this week's release :)

@oliviertassinari oliviertassinari requested review from brijeshb42 and removed request for DiegoAndai January 31, 2024 12:47
Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing the regression introduced in #40449, I wasn't aware this could also impact the component prop behavior 🙃

DiegoAndai, I'd appreciate a review here

I think it makes a lot more sense to ask for Brijesh's review, it's truly a MUI System related problem (Material UI only on the surface) and it's a follow-up on a previous PR, so the same people should be involved (author and reviewer both missed it).

@danilo-leal danilo-leal merged commit e4bc65e into mui:master Jan 31, 2024
19 checks passed
@danilo-leal danilo-leal deleted the fix-search-icons-component branch January 31, 2024 13:01
mostafa-rio pushed a commit to mostafa-rio/material-ui that referenced this pull request Feb 3, 2024
@oliviertassinari oliviertassinari added the package: icons Specific to @mui/icons label Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work docs Improvements or additions to the documentation package: icons Specific to @mui/icons package: material-ui Specific to @mui/material regression A bug, but worse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[material-ui][docs] The icon preview dialog is broken
3 participants