[ADD] web_checkbox_contrast: visible border on unchecked backend checkboxes
Odoo 18 draws the unchecked checkboxes, radios and switches of the backend with the separator gray (`--border-color`, gray-300): 1.3:1 on white, and 1.1:1 on readonly fields and list cells, which are dimmed to 50% on top. CSS-only addon that redefines `--border-color` on `.form-check-input`: gray-600 (4.7:1) when editable, gray-900 (3.1:1 after the dimming) when disabled. Bootstrap reads the property only in the base border of the control, so the checked, indeterminate, focus and hover states keep their stock colours whatever the load order. Closes #20 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8a029464eb
commit
1d6f95bdb7
12 changed files with 188 additions and 0 deletions
11
web_checkbox_contrast/readme/INSTALL.rst
Normal file
11
web_checkbox_contrast/readme/INSTALL.rst
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
Instalación
|
||||
===========
|
||||
|
||||
Instalar el módulo:
|
||||
|
||||
::
|
||||
|
||||
docker-compose run --rm odoo odoo -d odoo --stop-after-init -i web_checkbox_contrast
|
||||
|
||||
No tiene más dependencias que ``web``, así que se puede instalar y desinstalar
|
||||
en cualquier momento sin afectar a datos.
|
||||
Loading…
Add table
Add a link
Reference in a new issue