I'm using the material-ui and try to style the background-color of the RaisedButton
, using one of its props called backgroundColor
:
import React, {Component} from 'react';
import RaisedButton from 'material-ui/lib/raised-button';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Home.scss';
class Home extends Component {
render() {
return (
<div>
<h1 className={s.h1}>Pomodoro Tech</h1>
<div className={s.imgContain}>
<img src={require('./pom.png')} width="100%" height="100%"/>
</div>
<div>
<RaisedButton
label="Login"
secondary={true}
backgroundColor="#77CA2D"
/>
<RaisedButton
backgroundColor="#77CA2D"
label="About"
/>
</div>
</div>
);
}
}
export default withStyles(Home, s);
But that property never makes any differences.
The version of the material-ui I am using is 0.15.0-alpha.1
, according to the result of npm list --depth=0
command.
Before I ask this question I've done some search, but can't figure out what the problem is.