]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove the deprecated `form-control-focus` mixin
authorXhmikosR <xhmikosr@gmail.com>
Fri, 13 Dec 2019 16:25:32 +0000 (18:25 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Sat, 14 Dec 2019 13:47:39 +0000 (15:47 +0200)
scss/mixins/_forms.scss

index 25da71a7fb7998a6aee970677c28fd4bf605825b..769bc3ba9925ea573277de62968c89b4c0dcbf0c 100644 (file)
@@ -1,31 +1,3 @@
-// Form control focus state
-//
-// Generate a customized focus state and for any input with the specified color,
-// which defaults to the `$input-focus-border-color` variable.
-//
-// We highly encourage you to not customize the default value, but instead use
-// this to tweak colors on an as-needed basis. This aesthetic change is based on
-// WebKit's default styles, but applicable to a wider range of browsers. Its
-// usability and accessibility should be taken into account with any change.
-//
-// Example usage: change the default blue border and shadow to white for better
-// contrast against a dark gray background.
-@mixin form-control-focus($ignore-warning: false) {
-  &:focus {
-    color: $input-focus-color;
-    background-color: $input-focus-bg;
-    border-color: $input-focus-border-color;
-    outline: 0;
-    // Avoid using mixin so we can pass custom focus shadow properly
-    @if $enable-shadows {
-      box-shadow: $input-box-shadow, $input-focus-box-shadow;
-    } @else {
-      box-shadow: $input-focus-box-shadow;
-    }
-  }
-  @include deprecate("The `form-control-focus()` mixin", "v4.3.2", "v5", $ignore-warning);
-}
-
 // This mixin uses an `if()` technique to be compatible with Dart Sass
 // See https://github.com/sass/sass/issues/1873#issuecomment-152293725 for more details
 @mixin form-validation-state-selector($state) {