X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/e1605f7c93aeb41ae31e0dd88a9afd8709136b62..0c00f9d96076ad46e2ee499230f3f22a1603675d:/src/components/text-field/text-field.tsx diff --git a/src/components/text-field/text-field.tsx b/src/components/text-field/text-field.tsx index 93c4080f..1cf9a81d 100644 --- a/src/components/text-field/text-field.tsx +++ b/src/components/text-field/text-field.tsx @@ -15,21 +15,33 @@ import { import RichTextEditor from 'react-rte'; import Margin = PropTypes.Margin; -type CssRules = 'textField'; +type CssRules = 'textField' | 'rte'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ textField: { - marginBottom: theme.spacing.unit * 3 + marginBottom: theme.spacing.unit }, + rte: { + fontFamily: 'Arial', + '& a': { + textDecoration: 'none', + color: theme.palette.primary.main, + '&:hover': { + cursor: 'pointer', + textDecoration: 'underline' + } + } + } }); type TextFieldProps = WrappedFieldProps & WithStyles; export const TextField = withStyles(styles)((props: TextFieldProps & { - label?: string, autoFocus?: boolean, required?: boolean, select?: boolean, disabled?: boolean, children: React.ReactNode, margin?: Margin, placeholder?: string + label?: string, autoFocus?: boolean, required?: boolean, select?: boolean, disabled?: boolean, children: React.ReactNode, margin?: Margin, placeholder?: string, + helperText?: string, type?: string, }) => ); @@ -65,6 +78,7 @@ export const RichEditorTextField = withStyles(styles)( render() { return ;