-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
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
Use disabled styling for the button part of the custom-file input #28176
Comments
I came across this issue a few days ago. While it's good that disabled styling is there at all, it makes it look out-of-sync when one part of the control is clearly disabled and the other is seemingly unaffected, especially where other buttons on the page are also disabled. Would like to see this sorted out as it seems a simple fix. |
Disabled styling was added to the custom file input recently, but that didn't cover the button part of the component, so the button looks enabled when the input is disabled.
I think this could be achieved by adding something like:
&::after {
opacity: $btn-disabled-opacity;
@include box-shadow(none);
}
to the
&:disabled {
~ .custom-control-label {
section of the _custom_forms.scss
The text was updated successfully, but these errors were encountered: