Skip to content

Commit

Permalink
Fix: display flat-button's background correctly when focused
Browse files Browse the repository at this point in the history
Fixes mui#625.
  • Loading branch information
pomerantsev committed May 9, 2015
1 parent 3e89576 commit 57baf83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flat-button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ var FlatButton = React.createClass({
_handleKeyboardFocus: function(e, keyboardFocused) {

if (keyboardFocused && !this.props.disabled) {
this.getDOMNode().style.backgroundColor = ColorManipulator.fade(ColorManipulator.lighten(this.getStyles().root.color, 0.4), 0.15);
this.getDOMNode().style.backgroundColor = ColorManipulator.fade(ColorManipulator.lighten(this._getColor(), 0.4), 0.15);
} else {
this.getDOMNode().style.backgroundColor = 'transparent';
}
Expand Down

0 comments on commit 57baf83

Please sign in to comment.