As stated in the doc, the color property accepts enums of "default", "inherit", "primary", "secondary". I want an arbitrary color other than "primary" and "secondary". A possible solution is by utilizing the "Overriding with classes" feature where I can specify the root background, and it works.
const styles = {
root: {
backgroundColor: "rgba(44, 152, 240)",
}
};
function FloatingActionButtons(props) {
const { classes } = props;
return (
<Button
variant="fab"
classes={{ root: classes.root }}
>
<Icon style={{ fontSize: 34 }}>play_arrow</Icon>
</Button>
);
}
However, when the mouse hangs over the button, the background restores to the default light grey. This behavior is different when I specify the color property to "primary", in which case the background dims a bit when the mouse hangs over.
How should I specify the customized color correctly?