Skip to content
Snippets Groups Projects
Commit 83ca97d5 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

Merge pull request #497 from metabase/fix_card_favorite_button_state

correctly color card favorite button on query builder.
parents f2164228 bece126d
No related branches found
No related tags found
No related merge requests found
......@@ -74,10 +74,15 @@ export default React.createClass({
},
render: function() {
var fillColor = (this.state.favorite) ? 'text-gold' : 'text-grey-1';
var iconClasses = cx({
'mx1': true,
'transition-color': true,
'text-grey-3': !this.state.favorite,
'text-gold': this.state.favorite
});
return (
<a className="mx1 text-grey-4 text-gold-hover transition-color" href="#" onClick={this.toggleFavorite}>
<a className={iconClasses} href="#" onClick={this.toggleFavorite}>
<Icon name="star" width="18px" height="18px"></Icon>
</a>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment