]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix focus box-shadow for validation stated form-controls (#38719)
authorDmitry Karpunin <koderfunk@gmail.com>
Sat, 9 Dec 2023 08:34:21 +0000 (11:34 +0300)
committerGitHub <noreply@github.com>
Sat, 9 Dec 2023 08:34:21 +0000 (09:34 +0100)
Co-authored-by: Dmitry Karpunin <ext-dmitriy.karpunin@sbermarket.ru>
scss/mixins/_forms.scss

index d47b1e41d63e60a05ffb2ed42a3c3f847ccea2d5..00b47641346375ed5bd8c26551358568605b71f9 100644 (file)
 
       &: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;
+        }
       }
     }
   }
 
       &: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;
+        }
       }
     }
   }