Skip to content

Commit

Permalink
Deprecate form-control-focus mixin (#28262)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnCuppens authored and XhmikosR committed Feb 15, 2019
1 parent 25ce91a commit 28a7abf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scss/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion scss/mixins/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -23,6 +23,7 @@
box-shadow: $input-focus-box-shadow;
}
}
@include deprecate("The `form-control-focus()` mixin", "v4.3.2", "v5", $ignore-warning);
}


Expand Down

0 comments on commit 28a7abf

Please sign in to comment.