Skip to content

Commit 28a7abf

Browse files
MartijnCuppensXhmikosR
authored andcommitted
Deprecate form-control-focus mixin (twbs#28262)
1 parent 25ce91a commit 28a7abf

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

scss/_forms.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
}
3232

3333
// Customize the `:focus` state to imitate native WebKit styles.
34-
@include form-control-focus();
34+
@include form-control-focus($ignore-warning: true);
3535

3636
// Placeholder
3737
&::placeholder {

scss/mixins/_forms.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
// Example usage: change the default blue border and shadow to white for better
1212
// contrast against a dark gray background.
13-
@mixin form-control-focus() {
13+
@mixin form-control-focus($ignore-warning: false) {
1414
&:focus {
1515
color: $input-focus-color;
1616
background-color: $input-focus-bg;
@@ -23,6 +23,7 @@
2323
box-shadow: $input-focus-box-shadow;
2424
}
2525
}
26+
@include deprecate("The `form-control-focus()` mixin", "v4.3.2", "v5", $ignore-warning);
2627
}
2728

2829

0 commit comments

Comments
 (0)