Material-ui: [Button] RaisedButton Hover/Focus background color

Created on 8 Mar 2017  路  4Comments  路  Source: mui-org/material-ui

Guys, could you please add hoverColor prop to RaisedButton. Add, for example, here something like this:
backgroundColor: (state.keyboardFocused || state.hovered) && !disabled && (hoverColor || fade(labelColor, amount)),

Most helpful comment

@apanizo Apologies, my mind in on next. At this stage I can't see us adding that feature to master.

All 4 comments

No need - you can override the colors already.

Hi @mbrookes,

I know you can specify the colors, textColor(internally is used to specify the overlays' backgroundColor see here and here) , primaryColor and secondaryColor (see here) but from that point the hover color is just a fading effect over the color specified see here.

If my assumptions are not correct, how can I specify a specific hover color?

@apanizo Apologies, my mind in on next. At this stage I can't see us adding that feature to master.

We have been porting the component on the next branch. We reimplemented it from the ground-up. While we haven't tested it, I think that the issue is most likely fixed on that branch. Hence, I'm closing it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

finaiized picture finaiized  路  3Comments

TimoRuetten picture TimoRuetten  路  3Comments

sys13 picture sys13  路  3Comments

anthony-dandrea picture anthony-dandrea  路  3Comments

mb-copart picture mb-copart  路  3Comments