feat(web): improve disabled checkbox colors (#608)

* enhancement(web): gray color for disabled checkboxes

* fix 11PM coding mistakes.

* put dark last for uniformity
This commit is contained in:
martylukyy 2023-01-02 22:58:48 +00:00 committed by GitHub
parent 636ffd23c1
commit ebe5de0863
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,10 @@ const CheckboxField = ({
id={name}
name={name}
type="checkbox"
className={classNames("focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300 rounded", disabled ? "bg-gray-200" : "")}
className={classNames(
"focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300 rounded",
disabled ? "bg-gray-200 dark:bg-gray-700 dark:border-gray-700" : ""
)}
disabled={disabled}
/>
</div>