-
Notifications
You must be signed in to change notification settings - Fork 395
Use the Material UI "required" prop #1695
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
Comments
Good idea! |
It's not really a duplicate. The other issue specifically mentions optional required properties based on |
LukasBoll
added a commit
to LukasBoll/jsonforms
that referenced
this issue
Aug 16, 2021
closes eclipsesource#1695 Signed-off-by: Lukas Boll <[email protected]>
LukasBoll
added a commit
to LukasBoll/jsonforms
that referenced
this issue
Aug 16, 2021
closes eclipsesource#1695 Signed-off-by: Lukas Boll <[email protected]>
LukasBoll
added a commit
to LukasBoll/jsonforms
that referenced
this issue
Sep 9, 2021
closes eclipsesource#1695 Signed-off-by: Lukas Boll <[email protected]>
LukasBoll
added a commit
to LukasBoll/jsonforms
that referenced
this issue
Sep 12, 2021
closes eclipsesource#1695 Signed-off-by: Lukas Boll <[email protected]>
LukasBoll
added a commit
to LukasBoll/jsonforms
that referenced
this issue
Sep 13, 2021
closes eclipsesource#1695 Signed-off-by: Lukas Boll <[email protected]>
sdirix
pushed a commit
that referenced
this issue
Sep 13, 2021
Material UI supports handing over a 'required' prop to their components. We now use this prop instead of appending an asterisk manually to the control labels in the React Material renderer set . Using this approach the asterisk is rendered in a consistent and themeable way. Closes #1695 Signed-off-by: Lukas Boll <[email protected]>
This is now implemented and will be part of the next (alpha) release. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
When marking a field as required, it only adds the asterisk to the label text rather than using the required prop in InputLabel, which doesn't add the separate
<span />
Material UI renders. Therefore the styling can't be overridden (i.e. style it as red by default).Describe the solution you'd like
Use InputLabels's required prop
Describe for which setup you like to have the improvement
Framework: React
RendererSet: material
Additional context
https://material-ui.com/api/input-label/#props:~:text=FormControl.-,required
The text was updated successfully, but these errors were encountered: