-
-
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
The color for disabled SELECT is different from INPUT TYPE=TEXT and TEXTAREA #33089
Comments
From your own fiddle, From an accessibility perspective, I'd go with two since it has better contrasts. If we go the other way, current disabled select is only 3.95:1, could easily be increased to pass 4.5:1 :) |
@ffoodd I thought you were correct but decided to double check this morning :) The backgrounds are not the same color. The INPUT TYPE=TEXT and TEXTAREA have a background color of #e9ecef, opacity 1. The SELECT also has a background color of #e9ecef, but its opacity is .7 from the agent style sheet (I only checked chrome). The .form-control:disabled, .form-control[readonly] rules set the opacity to 1, but not the .form-select rules. |
Yeah so |
This is unique to Chrome, so attaching it into Reboot. See #33127. |
The issue is also present with Bootstrap v4.6.0: https://codepen.io/tkrotoff/pen/oNYGooP Under Chrome 88 macOS, opacity problem: Under Firefox 85, no opacity problem but the text color is wrong and misaligned: Under Safari 13.1.2 there are also text color problems: |
OS: win10
Browser: chrome 88, firefox 85, opera 73, edge 88
Repo: js fiddle
Picture of the bug in action: picture
The class form-select defines color and background color different from the class form-control. They should be the same.
In v4 a SELECT did not have a specific form-XYZ class of it's own, just form-control. In v5 a SELECT does have a specific form-select class.
The text was updated successfully, but these errors were encountered: