checkRegularColorContrast

A11YOOP method for checking color contrast within a component. Retrieves foregroundColors&backgroundColors from getA11yTarget and compares colors from both lists for Contrast Ratios below 4.5.

See also: WCAG - Color Contrast Minimum

Violation Report Format: ForegroundIndex:BackgroundIndex:ContrastRatio

Parameters

uniqueIdentifier

Optional suffix for uniquely retrieving a composable for UI test