I have a unique bootstrap button design that I'm struggling to remove the border from after it's clicked. While I was able to successfully change the background color, I'm faced with an annoying blue border that won't go away.
Every time I click on the button to open a modal window and then close the modal, the border persists until I click elsewhere on the page. I've tried adjusting the values in :active and :focus but haven't had any luck.
https://i.sstatic.net/ywOSv.png
html:
<button id="openPopup" type="button" class="btn btn-primary btn-lg text-uppercase" data-toggle="modal" data-target="#myModal">
some text here
</button>
css:
#openPopup {
padding: 20px 30px;
background-color: #a2238e;
border-color: #a2238e;
box-shadow: 1px 1px 1px #999;
white-space: normal;
font-size: smaller;
letter-spacing: 0.2px;
}
#openPopup:hover, #openPopup:active, #openPopup:focus {
background-color: #912284 !important;
border-color: #912284 !important;
}