aboutsummaryrefslogtreecommitdiff
path: root/guidelines/WCAG-1.0/guideline-2.js
diff options
context:
space:
mode:
authorGravatar Trevor Elliott <trevor@galois.com>2013-07-15 15:26:00 -0700
committerGravatar Trevor Elliott <trevor@galois.com>2013-07-15 15:26:00 -0700
commitbca26d5a785f2c41d4d223ee049465b7be361154 (patch)
treeddeec68d4b377bebf644150d93b0e5bafc124477 /guidelines/WCAG-1.0/guideline-2.js
parent2618fb0c74567b42ec238706132937f087f8fc06 (diff)
parent265f160e55d98b37aa8d8f9b16a1a5ccb32bdb0d (diff)
Merge remote-tracking branch 'origin/master' into new-ui
Diffstat (limited to 'guidelines/WCAG-1.0/guideline-2.js')
-rw-r--r--guidelines/WCAG-1.0/guideline-2.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/guidelines/WCAG-1.0/guideline-2.js b/guidelines/WCAG-1.0/guideline-2.js
index 7dcf28d..206dd3e 100644
--- a/guidelines/WCAG-1.0/guideline-2.js
+++ b/guidelines/WCAG-1.0/guideline-2.js
@@ -1,13 +1,7 @@
-exports.name = "colorDifference";
-exports.description = "Elements should provide sufficient color difference";
+exports.name = "Color Difference";
+exports.description = "Web Accessibility Guideline: Don't rely on color alone";
exports.rule = function(report) {
- /* Checkpoint 2.1 ***********************************************************/
-
- // TODO: not sure about the best way to test that information isn't hidden
- // when colors go away.
-
-
/* Checkpoint 2.2 ***********************************************************/
var fc = fiveui.color;
@@ -30,7 +24,6 @@ exports.rule = function(report) {
return $this.children().length == 0 && $.trim($this.text()).length > 0;
})
.each(function (i) {
- // TODO take into account fg alpha values
var fg = fc.colorToRGB($(this).css('color'));
var bg = fc.findBGColor($(this));
if (fg && bg) {