I'm making a signup form component in React using React hooks and styled components approach. I was able to make the component but after submission, in mozilla (Developer Edition), an outline is set on all input fields. This is not so in chrome though...
Below is the component styling:
const Input = styled.input`
outline: none;
padding: 5px;
margin-bottom: 10px;
border-radius: 3px;
border: none;
line-height: 1.5rem;
background-color: #F2F2F2;
&::placeholder {
opacity: 0.4;
}
&:focus,
&:active {
border-color: transparent;
border-bottom: 2px solid #a3a3a3;
}
`;
How do I resolve this issue? Here's what it looks like in the said browser:
