Different color when disabled #11792
Answered
by
wongjn
eduardodallmann
asked this question in
Help
-
Hello, I can't understand why the input and select background colors are different when disabled. Am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Aug 10, 2023
Replies: 1 comment 2 replies
-
At least in Chrome, disabled Consider explicitly applying |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
eduardodallmann
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At least in Chrome, disabled
<select>
elements have a defaultopacity
of0.7
, whereas disabled<input>
elements have an unchanged opacity of1
.Consider explicitly applying
opacity: 1
to the<select>
element viaopacity-100
or applyingopacity: 0.7
to the<input>
viaopacity-70
: https://play.tailwindcss.com/FrKf3CXEjd