Skip to content

Commit

Permalink
Fix focus box-shadow for validation stated form-controls (twbs#38719)
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitry Karpunin <ext-dmitriy.karpunin@sbermarket.ru>
  • Loading branch information
2 people authored and romankupchak93 committed Jan 5, 2024
1 parent 235aab5 commit 35f28fb
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions scss/mixins/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@

&:focus {
border-color: $border-color;
box-shadow: $focus-box-shadow;
@if $enable-shadows {
@include box-shadow($input-box-shadow, $focus-box-shadow);
} @else {
// Avoid using mixin so we can pass custom focus shadow properly
box-shadow: $focus-box-shadow;
}
}
}
}
Expand Down Expand Up @@ -100,7 +105,12 @@

&:focus {
border-color: $border-color;
box-shadow: $focus-box-shadow;
@if $enable-shadows {
@include box-shadow($form-select-box-shadow, $focus-box-shadow);
} @else {
// Avoid using mixin so we can pass custom focus shadow properly
box-shadow: $focus-box-shadow;
}
}
}
}
Expand Down

0 comments on commit 35f28fb

Please sign in to comment.