diff --git a/openbis_ng_ui/src/js/components/common/form/FormFieldContainer.jsx b/openbis_ng_ui/src/js/components/common/form/FormFieldContainer.jsx index 90242fc88c06bdb166ca3dfa8ab6b7148a9a73ce..df0fc2ce142edf0d6f21c5b17d512a8426b52eb0 100644 --- a/openbis_ng_ui/src/js/components/common/form/FormFieldContainer.jsx +++ b/openbis_ng_ui/src/js/components/common/form/FormFieldContainer.jsx @@ -9,6 +9,7 @@ const styles = theme => ({ overflow: 'hidden' }, metadataDefault: { + fontSize: theme.typography.label.fontSize, flex: '0 0 auto', margin: 0, marginBottom: theme.spacing(1) / 2, @@ -17,8 +18,11 @@ const styles = theme => ({ controlDefault: { flex: '0 0' }, - descriptionDefault: {}, + descriptionDefault: { + fontSize: theme.typography.label.fontSize + }, errorDefault: { + fontSize: theme.typography.label.fontSize, color: theme.palette.error.main } }) diff --git a/openbis_ng_ui/src/js/components/common/theme/ThemeProvider.jsx b/openbis_ng_ui/src/js/components/common/theme/ThemeProvider.jsx index cdd4015b050527671636e3676ec42b852053600d..6840a0d27bb197f23a97c2af33fb942ee775fd83 100644 --- a/openbis_ng_ui/src/js/components/common/theme/ThemeProvider.jsx +++ b/openbis_ng_ui/src/js/components/common/theme/ThemeProvider.jsx @@ -7,7 +7,7 @@ const theme = createMuiTheme({ typography: { useNextVariants: true, label: { - fontSize: '0.7em', + fontSize: '0.7rem', color: '#0000008a' } },