-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Custom form control box shadow missing on focus when shadows are enabled #26802
Comments
Can you verify this is an issue in our latest v5 work from |
This does not apply to v5, since only As a matter of fact, I think this should be fixed by defining (and applying) a preferred pseudo-class order. Remember "LoVe HAte"?—which was later extended to "LoVe Fuck HAte" to include For form controls, I'd go with:
It may even allow us to drop a few overrides here and there. Without going this far, I think moving |
FWIW, @jdanil's suggestion is by far the best way to solve this :) |
Fixed by #30957. |
When shadows are enabled in bootstrap, focus box shadows are missing for certain form control input states.
For example...
Testing in SassMeister, this evaluates to...
Since
.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before
is more specific, it overrides the focus box shadow in.custom-control-input:focus ~ .custom-control-label::before
.This affects
indeterminate
checkboxes andactive
inputs.checked
appears to be okay, as thefocus
styling is declared after it.Can I suggest that the default values of the following variables be updated from
none
tonull
, so that they don't override the focus styling unless they are set explicitly?$custom-control-indicator-checked-box-shadow
$custom-control-indicator-active-box-shadow
$custom-control-indicator-indeterminate-box-shadow
Also the
focus
styling for custom control input should be declared afteractive
, and the specificity of the rule should be increased so that it applies toindeterminate
checkboxes if the box shadows are modified by consumers.Happy to contribute if you're OK with the proposed solution.
The text was updated successfully, but these errors were encountered: