Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.React material Botton outline have black border-color onclick . But I haven't set it. How do I remove it?

import React from 'react';
import Button from '@material-ui/core/Button';

export default function DisableElevation() {
  return (
    <Button variant="contained" color="primary" disableElevation >
      Disable elevation
    </Button>
  );
}

enter image description here

like image 526
Jay Kittiwat Srichaipol Avatar asked Mar 03 '23 09:03

Jay Kittiwat Srichaipol


1 Answers

It is quite simple just make border:none and outline:none that's it for a corresponding component.

style={{
 border:"none",
 outline:"none"
}}
like image 127
Prajwal Shinde Avatar answered May 19 '23 09:05

Prajwal Shinde