Skip to content

Commit

Permalink
Fix focus box-shadow for validation stated form-controls (#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
KODerFunk and Dmitry Karpunin authored Dec 9, 2023
1 parent a1bae2e commit 56d80ea
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 56d80ea

Please sign in to comment.