How to change border color of textarea on :focus
.input:focus {
outline: none !important;
border:1px solid red;
box-shadow: 0 0 10px #719ECE;
}
so simple :
outline-color : green!important;
the whole CSS for my react-boostrap button is:
.custom-btn {
font-size:1.9em;
background: #2f5bff;
border: 2px solid #78e4ff;
border-radius: 3px;
padding: 50px 70px;
outline-color : blue !important;
text-transform: uppercase;
user-select: auto;
-moz-box-shadow: inset 0 0 4px rgba(0,0,0,0.2);
-webkit-box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
}
There is an input:focus as there is a textarea:focus
input:focus {
outline: none !important;
border-color: #719ECE;
box-shadow: 0 0 10px #719ECE;
}
textarea:focus {
outline: none !important;
border-color: #719ECE;
box-shadow: 0 0 10px #719ECE;
}
Probably a more appropriate way of changing outline color is using the outline-color
CSS rule.
textarea {
outline-color: #719ECE;
}
or for input
input {
outline-color: #719ECE;
}
box-shadow
isn't quite the same thing and it may look different than the outline, especially if you apply custom styling to your element.