I have my custom button with my background and a :hover
color, on the web it works fine, but on mobile devices, after clicking the button, it keeps the color of the :hover
even when the mouse is not over that button .
I want to find a way to correct this error because the button keeps :focus
css media with the same attributes as :hover
import MaterialButton from '@material-ui/core/Button';
export const Button = ({ title, className, style, onClick, disabled, type }: Props) => {
return (
<MaterialButton
ref={buttonRef}
type={type}
className={className}
style={style}
onClick={onClick}
disabled={disabled}
>
{title}
</MaterialButton>
);
};