-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validated inputs in .input-group
shouldn't be behind sibling element
#33644
Validated inputs in .input-group
shouldn't be behind sibling element
#33644
Conversation
What about scoping the Reverting the fix will obviously reintroduce the initial issue, and I think we can solve both cases by only checking that |
f4fc1e7
to
0ce1c16
Compare
@ffoodd I have made the required changes, does this solve both the problems? |
Scoping the @jatinmehta the scss you introduced in the last commit won't work. You have to create the selectors using the Perhaps we could scope the |
The following patch (on top of main) will solve most issues (demo). diff --git a/scss/mixins/_forms.scss b/scss/mixins/_forms.scss
index 283462fd5..e86bd8aef 100644
--- a/scss/mixins/_forms.scss
+++ b/scss/mixins/_forms.scss
@@ -130,7 +130,9 @@
.input-group .form-control,
.input-group .form-select {
@include form-validation-state-selector($state) {
- z-index: 3;
+ &:focus {
+ z-index: 3;
+ }
}
}
}
|
@korki43 Might seems OK to you but you're reintroducing #33204. The previous fix intended to ensure validation state are above; #33541 is about making invalid state above valid state. I'd be in favor of a local scale, with valid state being 2 and invalid state being 3. This way we ensure validation states are above default state, and that invalid state is above valid state. @jatinmehta You need to keep the |
I also forked @korki43's pen to use this PR's dist file directly. Thanks for the test case! |
a0f8c4f
to
7f641a9
Compare
Based on the Pen using last commit, I think we should add a rule regarding Something like: &:focus {
z-index: 3;
} Right after the Andy thought? |
@ffoodd I think adding |
7f641a9
to
074eebc
Compare
Co-authored-by: Gaël Poupard <ffoodd@users.noreply.github.com>
074eebc
to
988f7f5
Compare
@ffoodd I have made the requested changes. Can this PR be merged now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I updated my CodePen to ease testing various combinations and it works great.
Thanks for your patience and involvement!
@mdo should we include this in v5.0.0? |
@mdo Can this PR be merged now? |
@jatinmehta no worries, it'll be merged. Just wait for the formal questions to be discussed. |
.input-group
shouldn't be behind sibling element
Reverted changes done in PR #33211 to fix #33541