When I click on the input field, a second outline appears. How can I prevent the white portion from showing up? Initially, I used red for the outline color to ensure that I was writing the correct code. Based on my understanding of CSS, the white part should not be visible.
.Search-bar{ /*This is the component I need help with*/
height: 30px;
width: 300px;
border-radius: 15px;
border: none;
background-color: rgb(102, 102, 102);
text-align: center;
}
.Search-bar:hover{
width: 600px;
border: none;
}
.Search-bar:focus{
outline-color: red; /*I'm giving red to show contrast*/
}
.Navigation-bar {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
background-color: rgb(49, 49, 49);
color: white;
box-shadow: 0px 2.98px 7.45px rgba(0,0,0,0.3);
}
.Nav-list {
display: flex;
flex-direction: row;
justify-content: space-around;
}
.Nav-list-title-button {
margin-left: 15px;
color: white;
border: none;
background: 100px;
height: 60px;
width: 160px;
font-size: larger;
}
.Nav-list-title-button:hover {
color: grey;
}
.Nav-list-button {
color: white;
margin: auto;
border: none;
background: 100px;
height: 50px;
width: 100px;
font-size: large;
}
.Nav-list-button:hover {
color: grey;
}
<nav className="Navigation-bar">
<button className="Nav-list-title-button">Quests & Fiction</button>
<SearchBar />
<div className="Nav-list">
<button className="Nav-list-button">Log In</button>
<button className="Nav-list-button">Register</button>
</div>
</nav>
To view how it looks like, you can visit this link: https://i.sstatic.net/zMSJm.png