Skip to content
Snippets Groups Projects
Commit 16db5f75 authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

Merge branch 'hindawi-theme' of https://gitlab.coko.foundation/xpub/xpub-faraday into hindawi-theme

parents 0e2b1905 c7bb705e
No related branches found
No related tags found
1 merge request!43Sprint #19
import { css } from 'styled-components' import { css } from 'styled-components'
import { th, validationColor } from '@pubsweet/ui-toolkit' import { th } from '@pubsweet/ui-toolkit'
const textColor = ({ theme, validationStatus = 'default' }) => const textColor = ({ validationStatus }) =>
({ validationStatus === 'error' ? th('colorError') : th('colorText')
error: theme.colorError,
success: theme.colorText, const validatedBorder = ({ validationStatus }) =>
default: theme.colorFurniture, validationStatus === 'error' ? th('colorError') : th('colorFurniture')
warning: theme.colorWarning,
}[validationStatus]) const activeBorder = ({ validationStatus }) =>
validationStatus === 'error' ? th('colorError') : th('textField.activeBorder')
export default { export default {
Input: css` Input: css`
border: ${th('borderWidth')} ${th('borderStyle')} ${validationColor}; border: ${th('borderWidth')} ${th('borderStyle')} ${validatedBorder};
color: ${textColor}; color: ${textColor};
font-family: ${th('fontReading')}; font-family: ${th('fontReading')};
...@@ -21,7 +22,7 @@ export default { ...@@ -21,7 +22,7 @@ export default {
&:active, &:active,
&:focus { &:focus {
border-color: ${th('textField.activeBorder')}; border-color: ${activeBorder};
outline: none; outline: none;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment