Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add outerStyle to RaisedButton to admit styling #460

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/js/raised-button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ var RaisedButton = React.createClass({
return new Error('Warning: Required prop `label` or `children` was not specified in `'+ componentName + '`.')
}
},
outerStyle: React.PropTypes.object,
style: React.PropTypes.object,
onMouseDown: React.PropTypes.func,
onMouseUp: React.PropTypes.func,
onMouseOut: React.PropTypes.func,
Expand Down Expand Up @@ -55,7 +57,7 @@ var RaisedButton = React.createClass({
else children = this.props.children;

return (
<Paper className={classes} zDepth={this.state.zDepth}>
<Paper className={classes} zDepth={this.state.zDepth} style={this.props.outerStyle}>
<EnhancedButton {...other}
className="mui-raised-button-container"
onMouseUp={this._handleMouseUp}
Expand Down Expand Up @@ -99,4 +101,4 @@ var RaisedButton = React.createClass({

});

module.exports = RaisedButton;
module.exports = RaisedButton;