Skip to content

Use the Material UI "required" prop #1695

@stevenmckinnon

Description

@stevenmckinnon

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions