diff --git a/client/cryps.css b/client/cryps.css index ef408aa0..e28cda97 100644 --- a/client/cryps.css +++ b/client/cryps.css @@ -116,10 +116,6 @@ button.left:hover, button.left:focus { box-shadow: inset 0.5em 0 0 0 whitesmoke; } -button.hidden { - opacity: 0; -} - svg { flex: 1; fill: none; @@ -311,6 +307,11 @@ header { margin-bottom: 1.5em; } +.create-form.disabled { + border: 1px solid #333; + color: #333; +} + .create-form select, .create-form input, .create-form label { margin: 0; } @@ -382,7 +383,7 @@ header { margin: 0; } -.instance-ui-btn[disabled] { +button[disabled] { color: #333; border-color: #333; } diff --git a/client/src/components/instance.create.form.jsx b/client/src/components/instance.create.form.jsx index 3e9cc9d0..f8b5f8cb 100644 --- a/client/src/components/instance.create.form.jsx +++ b/client/src/components/instance.create.form.jsx @@ -50,18 +50,23 @@ class InstanceCreateForm extends Component { } render() { + const disabled = !this.props.selectedCryps.every(c => c); + + const classes = `create-form ${disabled ? 'disabled' : ''}`; return ( -