-
-
Notifications
You must be signed in to change notification settings - Fork 245
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
Ability to pass variant prop to Material-UI SelectField to support other field types #495
Comments
Hi @skirunman. Yes, it should be included in the theme. The reason for it is that most of the fields are rendering at least two elements. Therefore there's at least a bunch of props passed into a wrong component. As @janowsiany already made a PR which cannot be merged yet (but we are working on it), a smaller one is also welcome. |
@radekmie Would it be possible to release this now as |
Well, it's definitely possible. The thing is, I wanted to keep version 2 for a major release of the core package and then switch to independent versioning (and increase minimum versions a lot). For now, let's keep it as it is. |
I'd argue that it makes sense to decouple the versioning of the theme packages from the core package and it sounds like you agree, but want to wait until a major update to the core. But if you don't want to do that now any suggestions on how to "fix" this issue as |
Material-UI 3 now supports Selects with both the new Outlined and Filled text field variants when used with Select React component, see demo.
However, it does not seem that Uniforms MUI SelectField supports ability to pass in the
variant
prop such asvariant="outlined"
like you can withfullWidth
orrequired
props. The MUI FormControl component supports thevariant
prop so maybe just adding this prop toSelectField
with logic forinput
is what is required.If there is another way to support using these field variants today please let me know or if this will require a PR.
The text was updated successfully, but these errors were encountered: