I have designed a set of tab-styled buttons for an options menu, and everything is looking great and functioning properly. However, I am facing an issue with the blue highlight that appears on the active button. Is there a way to remove this highlight?
https://i.sstatic.net/Ad9TC.png
Interestingly, my code snippet does not showcase the problem.
function ShowCurrent()
{
document.getElementById('btnCurrent').className = "menu";
document.getElementById('btnFuture').className = "menu off";
}
function ShowFuture()
{
document.getElementById('btnFuture').className = "menu";
document.getElementById('btnCurrent').className = "menu off";
}
.menu
{
border: 2px solid grey;
border-bottom: none;
margin-bottom: -2px;
margin-right: 5px;
padding: 3px 2px;
position: relative;
z-index: 5;
}
.off
{
border-bottom: 2px solid grey;
padding: 2px;
}
.placeholder
{
border: 2px solid grey;
}
<div>
<button id="btnCurrent" class="menu" onClick="ShowCurrent();">Current</button>
<button id="btnFuture" class="menu off" onClick="ShowFuture();">Future</button>
</div>
<div class="placeholder">Just hanging out, taking up space</div>