I have a style const variable,
const style = {
timeInput: {
width: '3.75rem',
outline: 'none',
borderColor: 'transparent',
fontSize: remCalc(12),
color: darkestGrey
},
}
Here is the input field,
<input
style={style.timeInput} //here
disabled={disabled}
ref={instance => (this.dropDown = instance)}
value={typeof time === 'string' ? time : moment(time).format('LT')}
onChange={this.onTimeChange.bind(this)}
></input>
How can I add "opacity: '0.4'" css, when disabled is true ?