Apparently I need some education on how the inherit
value works in CSS. I'm trying to use it with an element using the :focus
selector to make sure that, on focus, the border color doesn't change. I'm doing this because I want to override Bootstrap's default behavior which creates a blue "glow" around focused input elements on forms.
But oddly, when I set border-color:inherit
under input:focus
, the border just goes black on focus. Here's a jsfiddle demonstrating this. The first input
has an explicit color under focus
and that works fine. The Second input
uses inherit
just goes to black on focus.