diff --git a/src/core/client/ui/components/CallOut/CallOut.css b/src/core/client/ui/components/CallOut/CallOut.css index 7a8c79b76..5a7872bde 100644 --- a/src/core/client/ui/components/CallOut/CallOut.css +++ b/src/core/client/ui/components/CallOut/CallOut.css @@ -29,7 +29,6 @@ } .fullWidth { - display: block; + display: flex; width: 100%; - box-sizing: border-box; } diff --git a/src/core/client/ui/components/TextField/TextField.tsx b/src/core/client/ui/components/TextField/TextField.tsx index 3162d62d4..0383192ce 100644 --- a/src/core/client/ui/components/TextField/TextField.tsx +++ b/src/core/client/ui/components/TextField/TextField.tsx @@ -29,10 +29,22 @@ export interface TextFieldProps { * If set renders a full width button */ fullWidth?: boolean; + /** + * Placeholder + */ + placeholder?: string; } const TextField: StatelessComponent = props => { - const { className, classes, color, fullWidth, value, ...rest } = props; + const { + className, + classes, + color, + fullWidth, + value, + placeholder, + ...rest + } = props; const rootClassName = cn( classes.root, @@ -44,12 +56,20 @@ const TextField: StatelessComponent = props => { className ); - return ; + return ( + + ); }; TextField.defaultProps = { color: "regular", fullWidth: false, + placeholder: "", }; const enhanced = withStyles(styles)(TextField); diff --git a/src/core/client/ui/components/ValidationMessage/ValidationMessage.css b/src/core/client/ui/components/ValidationMessage/ValidationMessage.css index 4b90b787e..69c42aa54 100644 --- a/src/core/client/ui/components/ValidationMessage/ValidationMessage.css +++ b/src/core/client/ui/components/ValidationMessage/ValidationMessage.css @@ -4,7 +4,7 @@ display: inline-flex; justify-content: flex-start; align-items: center; - padding: 7px 10px; + padding: calc(0.5 * var(--spacing-unit)) var(--spacing-unit) box-sizing: border-box; } @@ -19,17 +19,16 @@ background-color: var(--palette-error-light); border-radius: 1px; border-color: var(--palette-error-darkest); - border-left-width: 8px; + border-left-width: calc(0.5 * var(--spacing-unit)); border-left-style: solid; color: var(--palette-common-white); } .fullWidth { - display: block; + display: flex; width: 100%; - box-sizing: border-box; } .icon { - margin-right: 8px; + margin-right: calc(0.5 * var(--spacing-unit)); }