File tree 1 file changed +21
-9
lines changed
1 file changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import {
13
13
} from '@jsonforms/material-renderers' ;
14
14
import RatingControl from './RatingControl' ;
15
15
import ratingControlTester from './ratingControlTester' ;
16
- import { makeStyles } from '@material-ui/core/styles' ;
16
+ import { createMuiTheme , makeStyles , ThemeProvider } from '@material-ui/core/styles' ;
17
17
18
18
const useStyles = makeStyles ( ( _theme ) => ( {
19
19
container : {
@@ -41,6 +41,16 @@ const useStyles = makeStyles((_theme) => ({
41
41
} ,
42
42
} ) ) ;
43
43
44
+ const theme = createMuiTheme ( {
45
+ overrides : {
46
+ MuiFormHelperText : {
47
+ root : {
48
+ minHeight : '1.6em'
49
+ }
50
+ }
51
+ }
52
+ } ) ;
53
+
44
54
const initialData = {
45
55
name : 'Send email to Adrian' ,
46
56
description : 'Confirm if you have passed the subject\nHereby ...' ,
@@ -105,14 +115,16 @@ const App = () => {
105
115
Rendered form
106
116
</ Typography >
107
117
< div className = { classes . demoform } >
108
- < JsonForms
109
- schema = { schema }
110
- uischema = { uischema }
111
- data = { jsonformsData }
112
- renderers = { renderers }
113
- cells = { materialCells }
114
- onChange = { ( { errors, data } ) => setJsonformsData ( data ) }
115
- />
118
+ < ThemeProvider theme = { theme } >
119
+ < JsonForms
120
+ schema = { schema }
121
+ uischema = { uischema }
122
+ data = { jsonformsData }
123
+ renderers = { renderers }
124
+ cells = { materialCells }
125
+ onChange = { ( { errors, data } ) => setJsonformsData ( data ) }
126
+ />
127
+ </ ThemeProvider >
116
128
</ div >
117
129
</ Grid >
118
130
</ Grid >
You can’t perform that action at this time.
0 commit comments