In Chrome, there is a blue border around the textarea.
How come I can't remove it?
textarea:hover, input:hover, textarea:active, input:active, textarea:focus, input:focus { outline:0px !important; }
If you're using Bootstrap 4, add box-shadow: none (and don't forgot the prefix -webkit-box-shadow: none ) to this answer. Also note that Bootstrap 4 already has . btn:focus { outline: none } in its btn classes.
You have write -webkit-appearance:none;
like this:
textarea:hover, input:hover, textarea:active, input:active, textarea:focus, input:focus, button:focus, button:active, button:hover, label:focus, .btn:active, .btn.active { outline:0px !important; -webkit-appearance:none; box-shadow: none !important; }
If you just want to change the color, change the variable (recommended):
@input-border-focus: red;
variables.less
$input-border-focus: red;
variables.sass
If you wan't to remove it completely, you'll have to overwrite the Mixin that sets the outline.
.form-control-focus(@color: @input-border-focus) {}
If you are using css overwrite it via:
.form-control:focus{ border-color: #cccccc; -webkit-box-shadow: none; box-shadow: none; }
Link to implementation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With