aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2015-11-29 19:48:54 -0800
committerMark Otto <[email protected]>2015-11-29 19:48:54 -0800
commit94d7a8f4ef9d90795e33102dce1ec08a329300b6 (patch)
tree86da8be4311362b4a251e034d3c3b96eeb01de88
parent45632894d9bc9204cfff4b3c97b6c2bccc8b235f (diff)
parent1e6f23ce922b0310bda5a4a9cf9ebd4ae6881f0c (diff)
downloadbootstrap-94d7a8f4ef9d90795e33102dce1ec08a329300b6.tar.xz
bootstrap-94d7a8f4ef9d90795e33102dce1ec08a329300b6.zip
Merge pull request #18265 from twbs/fix-v4-17007
Bring focused input group controls to front via z-index:3
-rw-r--r--scss/_input-group.scss10
1 files changed, 9 insertions, 1 deletions
diff --git a/scss/_input-group.scss b/scss/_input-group.scss
index 3b4ef632c..ad09d28a8 100644
--- a/scss/_input-group.scss
+++ b/scss/_input-group.scss
@@ -19,6 +19,10 @@
// proper border colors.
position: relative;
z-index: 2;
+ // Bring the "active" form control to the front
+ @include hover-focus-active {
+ z-index: 3;
+ }
@if $enable-flex {
flex: 1;
} @else {
@@ -160,7 +164,7 @@
}
// Bring the "active" button to the front
@include hover-focus-active {
- z-index: 2;
+ z-index: 3;
}
}
@@ -176,6 +180,10 @@
> .btn-group {
z-index: 2;
margin-left: -1px;
+ // Because specificity
+ @include hover-focus-active {
+ z-index: 3;
+ }
}
}
}