-
Notifications
You must be signed in to change notification settings - Fork 92
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
is it support V1 of material-ui ? #71
Comments
not yet |
Do you need help porting to v1? |
Yes. Every kind of help is welcome 😄 |
Okay I am on it. I have done a lot of work and I think it is almost done. I do struggle with something though. The project is running, the demo "home" page is loading but when I switch pages (e.g. // Default style depending on Material-UI context (
const { baseTheme: { palette }, menuItem } = this.context.muiTheme |
muiTheme implementation got totally revamped in v1 if i remember correctly. Your best bet to find the correct context path would be on Material-UI documentation or sources (v1+ branch). |
From what I am seeing here,
which I tried but EDIT: After reading the changelog,
So I am continuing the investigation |
The whole So check the source of any v1 component to find out how do they mix component-scale styles with app-scale styles(theme) |
Then why do you use the context instead of wrapping your component with |
maybe because only way i found in v0.x were through In your case, you are targeting v1.+, which got totally revamped. In that regard, i didnot look much how the new system works. "Try it !" :p |
Hi @Sharlaan and @gilles-yvetot , How is it going with the migration? |
Material UI V1 is out! would really love to see this supported. |
Any updates on this? I'm planning on migrating my own code to material-ui latest version but I think I can't do it until this component also updates. |
Hi @cristianocca and @amrsobhy , for my part we could not wait and made our own component for autocomplete fields with MUI V1 and used for that the established library downshift. muishift uses downshift and just Material UI components as UI. If someone needs a fast solution that should work out. Othervise a PR to this library is always welcome 😄 |
Thanks @TarikHuber; however, I need more than just the basic features of a select field (multi select with checkboxes for example) |
@TarikHuber : Well, I couldn't wait neither and ended up "vendoring" the library into my project and adapting it to my needs (material ui 3.x and some fixes). I can't really do a PR or contribute to the actual project since I removed most of the functionalities and customizations I didn't need (in order to migrate it faster). However, if anyone is interested, I would gladly share the the code. I have basically kept the main functionalities (simple and multi picker with checkboxes) and adapted all the components so it matches exactly all the other material UI fields (same colors, sizes, width, etc.) |
@cristianocca i'm interested please share in a codesandbox. |
@Sharlaan I don't really have time to make a proper example in a code sandbox. Please see the attached zip file with the code and captures of how it looks. Keep in mind that I don't think this version of the code is suitable for everyone since I removed some features I didn't need in order to make the migration faster. Also, I wasn't able to make the infinite scroll library to work properly (which for some reason broke with the new MUI modals, I believe it's related to the new use of portals), so the dropdown won't work efficiently with massive lists. Lastly, it can't be used as a drop-in replacement of the original version since I have also renamed "floatingLabel" and similar to just "label" to match the new MUI namings. |
No description provided.
The text was updated successfully, but these errors were encountered: