Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blue outlines on bootstrap select

I have installed bootstrap-select and it all works fine, except that blue borders appear in 2 instances:

1) in the dropdown menu

enter image description here

2) when a new value is picked

enter image description here

Can someone please help how it can be fixed? I adjusted a few things already.

.bootstrap-select .btn {
  height: 43px;
  color: rgba(0, 0, 0, 0.5);
  background-color: white;
  border-radius: 3px;
}
.bootstrap-select .btn:focus {
  outline: none !important;
  outline: 5px auto -webkit-focus-ring-color !important;
}
like image 318
bootsa Avatar asked Jun 04 '26 11:06

bootsa


2 Answers

apply those two css rules after all the other css styles

.bootstrap-select .dropdown-toggle:focus {
    outline: none!important;
}
:focus {
  outline: none!important;
}
like image 106
Gianluca Ghettini Avatar answered Jun 08 '26 00:06

Gianluca Ghettini


Removing the blue outline around the element and items inside of it:

<style>
    .bootstrap-select .btn:focus {
        outline: none !important;
    }

    .selectpicker a {
        outline: 0;
    }
</style>

Tested on Chrome, Firefox and Opera.

like image 30
Hamid Behnam Avatar answered Jun 07 '26 22:06

Hamid Behnam



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!