diff --git a/ui/dist/themes/dark.css b/ui/dist/themes/dark.css index 9e7f81d09..a4ef71fe1 100644 --- a/ui/dist/themes/dark.css +++ b/ui/dist/themes/dark.css @@ -15,9 +15,13 @@ --text-color: #FFF; --text-selection-bg: rgba(0,150,136, 0.95); + /* Form */ + --form-label-color: rgba(255, 255, 255, 0.54); + /* Input */ --input-bg: transparent; - --input-border-color: rgba(255,255,255, 0.25); + --input-border-color: rgba(255,255,255, 0.36); + --input-hover-border-color: rgba(255, 255, 255, 0.75); /* Search */ --search-bg: rgba(0,0,0, 0.45); diff --git a/ui/js/component/form.js b/ui/js/component/form.js index 7eaac87e4..068e748d7 100644 --- a/ui/js/component/form.js +++ b/ui/js/component/form.js @@ -46,6 +46,10 @@ export class FormRow extends React.PureComponent { // helper: React.PropTypes.html, }; + static defaultProps = { + isFocus: false, + }; + constructor(props) { super(props); @@ -101,8 +105,14 @@ export class FormRow extends React.PureComponent { return this._field.getOptions(); } - focus() { - this._field.focus(); + onFocus() { + //this._field.focus(); + this.setState({ isFocus: true }); + } + + onBlur() { + //this._field.focus(); + this.setState({ isFocus: false }); } render() { @@ -117,6 +127,7 @@ export class FormRow extends React.PureComponent { } delete fieldProps.helper; delete fieldProps.errorMessage; + delete fieldProps.isFocus; return (
@@ -124,14 +135,16 @@ export class FormRow extends React.PureComponent { ?