Color contrast ratios in bsddialog do not satisfy WCAG contrast guidelines
From an earlier message on freebsd-accessibility mailing list, there was discussion about checking the color contrast of the different themes.
The WCAG guidelines suggest the following guidelines:
- Text color and background color
- Level AA: 4.5:1
- Level AAA: 7.1:1
- Contrast for graphical elements (e.g., buttons from background).
- 3:1
FWIW, there are requirements in Europe for technology to be at least AA-compliant
Here are the current values for the different themes. The items that are below AA end with a (*)
Flat theme (and dialog)
- Difference between dialog and background: 5.46:1
- Dialog background and text: 9.9:1
- Dialog and selection: 5.46:1
- Button hotkey text and selection: 5.46:1
- Button text and selection: 2.69:1 (*)
- Button hotkey and not selected: 3.26:1 (*)
- Shadow and background: 1.81:(*)
- Shadow and dialog: 9.9:1
bsddialog
- Difference between dialog and background: 1.23:1 (*)
- Dialog background and text: 9.9:1
- Dialog and selection: 2.03:1 (*)
- Button hotkey text and selection: 1.61:1 (*)
- Button text and selection: 4.89:1
- Button hotkey and not selected: 3.26:1 (*)
- Shadow and background: 8.05:1
- Shadow and dialog: 9.9:1
blackwhite
This works as is (although there is no indication of yes/no). Would it be possible to ask for a "bold" variant here? or perhaps have the white be a little gray? Also perhaps make the hotkeys be "bright"?