Sha256: 489756882be304610781d9d2a9dd8cbcb571bee0415b9cf7c485e484056b0f3b

Contents?: true

Size: 1.61 KB

Versions: 114

Compression:

Stored size: 1.61 KB

Contents

{
	"id": "color-contrast",
	"evaluate": "color-contrast.js",
	"metadata": {
		"impact": "serious",
		"messages": {
			"pass": "Element has sufficient color contrast of {{=it.data.contrastRatio}}",
			"fail": "Element has insufficient color contrast of {{=it.data.contrastRatio}} (foreground color: {{=it.data.fgColor}}, background color: {{=it.data.bgColor}}, font size: {{=it.data.fontSize}}, font weight: {{=it.data.fontWeight}}). Expected contrast ratio of {{=it.data.expectedContrastRatio}}",
			"incomplete": {
				"bgImage": "Element's background color could not be determined due to a background image",
				"bgGradient": "Element's background color could not be determined due to a background gradient",
				"imgNode": "Element's background color could not be determined because element contains an image node",
				"bgOverlap": "Element's background color could not be determined because it is overlapped by another element",
				"fgAlpha": "Element's foreground color could not be determined because of alpha transparency",
				"elmPartiallyObscured": "Element's background color could not be determined because it's partially obscured by another element",
				"elmPartiallyObscuring": "Element's background color could not be determined because it partially overlaps other elements",
				"outsideViewport": "Element's background color could not be determined because it's outside the viewport",
				"equalRatio": "Element has a 1:1 contrast ratio with the background",
				"shortTextContent": "Element content is too short to determine if it is actual text content",
				"default": "Unable to determine contrast ratio"
			}
		}
	}
}

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
govuk_publishing_components-21.22.0 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-21.21.3 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-21.21.2 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-21.21.1 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-21.21.0 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-21.20.0 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-21.19.1 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-21.19.0 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-21.18.0 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-21.17.0 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-21.16.3 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-21.16.2 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-21.16.1 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-21.16.0 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-21.15.2 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-21.15.1 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-21.15.0 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-21.14.0 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-21.13.5 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-21.13.4 node_modules/axe-core/lib/checks/color/color-contrast.json