所以API(远v3.9.2
),我看到了一个提TouchRippleProps
供ButtonBase
了https://material-ui.com/api/button-base/
我的按钮看起来像
<Button variant="text"
size={"large"}
fullWidth
className={classes.button}
>
{value}
</Button>
我的按钮style
是 .
button: {
backgroundColor: colors.surface,
borderRadius: 0, // to make buttons sharp edged
touchRipple: colors.primary
}
当我触摸一个按钮时,我会看到一个白色的背景(见数字5
),因为
我的问题是当我触摸一个按钮时,我该如何改变那个背景
white
,让我们说blue
,然后让它消失?