diff options
| author | Martijn Cuppens <[email protected]> | 2019-02-15 14:50:58 +0100 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-02-15 15:50:58 +0200 |
| commit | 28a7abf0f78d070cbd024ee58d9bc92a08cd69d8 (patch) | |
| tree | ae57a71c3a3015826307902d7e8008bcf40dcc7d | |
| parent | 25ce91adc09811c313fcb08d856c3d01d5f0e0f9 (diff) | |
| download | bootstrap-28a7abf0f78d070cbd024ee58d9bc92a08cd69d8.tar.xz bootstrap-28a7abf0f78d070cbd024ee58d9bc92a08cd69d8.zip | |
Deprecate form-control-focus mixin (#28262)
| -rw-r--r-- | scss/_forms.scss | 2 | ||||
| -rw-r--r-- | scss/mixins/_forms.scss | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/scss/_forms.scss b/scss/_forms.scss index ec9c33559..79ca507f7 100644 --- a/scss/_forms.scss +++ b/scss/_forms.scss @@ -31,7 +31,7 @@ } // Customize the `:focus` state to imitate native WebKit styles. - @include form-control-focus(); + @include form-control-focus($ignore-warning: true); // Placeholder &::placeholder { diff --git a/scss/mixins/_forms.scss b/scss/mixins/_forms.scss index ea8a91a02..1b51a6439 100644 --- a/scss/mixins/_forms.scss +++ b/scss/mixins/_forms.scss @@ -10,7 +10,7 @@ // // Example usage: change the default blue border and shadow to white for better // contrast against a dark gray background. -@mixin form-control-focus() { +@mixin form-control-focus($ignore-warning: false) { &:focus { color: $input-focus-color; background-color: $input-focus-bg; @@ -23,6 +23,7 @@ box-shadow: $input-focus-box-shadow; } } + @include deprecate("The `form-control-focus()` mixin", "v4.3.2", "v5", $ignore-warning); } |
