Material-ui v1 Input focus style override
问题 I'm trying to override the styling of the Input component when it is on focus via class name overide. I have tried the following: const style = theme => ({ input: { width: '20%', borderRadius: 4, backgroundColor: 'white', border: '1px solid #ced4da', fontSize: 20, '&:focus': { width: '40%', borderColor: '#80bdff', boxShadow: '0 0 0 0.2rem rgba(0,123,255,.25)', }, } }); class test extends Component { // UI render() { const {classes} = this.props return ( <AppBar position="static"> <Toolbar>