Color contrast check for simple graphics
The WCAG stipulates a minimum color contrast of 3:1 for images of large text, user interface components and information-bearing graphics.( §§1.4.3, 1.4.11 WCAG 2.2)
The color contrast check checks the color contrast of simple graphic elements (like icons) against the automatically determined background color.
Errors when checking graphic elements with this method can be found in the run log with the following error code:
QF-Test-errorcode: ERR_COLOR_CONTRAST_SIMPLE_GRAPHICS
Parameters of the color contrast check
The procedure checkColorContrastOfGraphic has the following additional parameters:
- genericClass
-
The generic class of a component (see Generic classes). All elements of this class within the
scope
are checked for their color contrast.
Default:Graphics