Skip to content

Commit b77b874

Browse files
committed
fix focus shadows, if enabled
1 parent 3fa312c commit b77b874

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scss/mixins/_forms.scss

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
.custom-control {
1313
color: $color;
1414
}
15+
1516
// Set the border and box shadow on specific inputs to match
1617
.form-control {
1718
border-color: $color;
18-
// @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
1919

20-
&:focus {
21-
// border-color: darken($border-color, 10%);
22-
// $shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten($border-color, 20%);
23-
// @include box-shadow($shadow);
20+
@if $enable-rounded {
21+
&:focus {
22+
box-shadow: $input-box-shadow, 0 0 6px lighten($color, 20%)
23+
}
2424
}
2525
}
2626

0 commit comments

Comments
 (0)