From ceb94a2e29e4a4a123a595dd7a970ddee88bbc5f Mon Sep 17 00:00:00 2001 From: ysds Date: Mon, 23 Apr 2018 16:55:34 +0900 Subject: [PATCH] Fix z-index target * Incorrect: > .custom-file:focus * Correct: > .custom-file .custom-file-input:focus ~ .custom-file-label --- scss/_input-group.scss | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scss/_input-group.scss b/scss/_input-group.scss index 78d7bc99aa89..2adf9a6063cf 100644 --- a/scss/_input-group.scss +++ b/scss/_input-group.scss @@ -21,11 +21,6 @@ width: 1%; margin-bottom: 0; - // Bring the "active" form control to the top of surrounding elements - &:focus { - z-index: 3; - } - + .form-control, + .custom-select, + .custom-file { @@ -33,6 +28,13 @@ } } + // Bring the "active" form control to the top of surrounding elements + > .form-control:focus, + > .custom-select:focus, + > .custom-file .custom-file-input:focus ~ .custom-file-label { + z-index: 3; + } + > .form-control, > .custom-select { &:not(:last-child) { @include border-right-radius(0); }