Sha256: 073ede3153da6fd9383e585e61852659c0d3f79138fd5f38d1b74b82068afccf

Contents?: true

Size: 1.72 KB

Versions: 260

Compression:

Stored size: 1.72 KB

Contents

{
	"id": "color-contrast",
	"evaluate": "color-contrast.js",
	"options": {
		"noScroll": false,
		"ignoreUnicode": true,
		"ignoreLength": false
	},
	"metadata": {
		"impact": "serious",
		"messages": {
			"pass": "Element has sufficient color contrast of ${data.contrastRatio}",
			"fail": "Element has insufficient color contrast of ${data.contrastRatio} (foreground color: ${data.fgColor}, background color: ${data.bgColor}, font size: ${data.fontSize}, font weight: ${data.fontWeight}). Expected contrast ratio of ${data.expectedContrastRatio}",
			"incomplete": {
				"default": "Unable to determine contrast ratio",
				"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",
				"nonBmp": "Element content contains only non-text characters"
			}
		}
	}
}

Version data entries

260 entries across 260 versions & 1 rubygems

Version Path
govuk_publishing_components-30.4.1 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-30.4.0 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-30.3.0 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-30.2.1 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-30.2.0 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-30.1.0 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-30.0.0 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-29.15.3 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-29.15.2 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-29.15.1 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-29.15.0 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-29.14.0 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-29.13.0 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-29.12.1 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-29.12.0 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-29.11.0 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-29.10.0 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-29.9.0 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-29.8.0 node_modules/axe-core/lib/checks/color/color-contrast.json
govuk_publishing_components-29.7.0 node_modules/axe-core/lib/checks/color/color-contrast.json