added flatbutton background color property#1561
Conversation
|
Thanks @yongxu, could you rebase? |
5dfcc00 to
f2fa4db
Compare
|
Thanks @shaurya947, I have rebased it with the latest master branch! |
|
src/flat-button.jsx
Outdated
There was a problem hiding this comment.
contextProps is no longer used. You probably need to change this to:
const buttonBackgroundColor = backgroundColor || buttonColor;Also, I was thinking that it would be nice to add the backgroundColor property to the flatButton key inside theme-manager too. What do you think? That way, we can check in this order of precedence:
backgroundColor prop > backgroundColor theme value > buttonColor
|
I agree with you @shaurya947. |
|
@shaurya947 the I do agree with you on adding |
f2fa4db to
43fe9ef
Compare
|
@shaurya947 the problem should have been fixed. sorry didn't test it after rebase. |
|
Gotcha @yongxu. I'll go ahead and merge this. Thanks! |
added flatbutton background color property
added backgroundColor property.
The previous code only has hovered background color property