From d7580f756d1836e9d78ff45888f54b966608cef0 Mon Sep 17 00:00:00 2001 From: Arjun Chikara Date: Thu, 16 May 2024 18:46:05 +0530 Subject: [PATCH] Fixed logic for the last commit of distinguishable links --- lib/checks/color/link-in-text-block-evaluate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/checks/color/link-in-text-block-evaluate.js b/lib/checks/color/link-in-text-block-evaluate.js index 7a79eb70..67b0731c 100644 --- a/lib/checks/color/link-in-text-block-evaluate.js +++ b/lib/checks/color/link-in-text-block-evaluate.js @@ -28,10 +28,10 @@ function isBlock(elm) { } function linkInTextBlockEvaluate(node) { - if(node.getAttribute('type') ==='button' || node.tagName.toLowerCase() === 'button' || node.getAttribute('role') !== 'button') { + if(node.getAttribute('type') ==='button' || node.tagName.toLowerCase() === 'button' || node.getAttribute('role') === 'button') { return true; } - + var options = arguments.length > 1 && arguments[1] ? arguments[1] : {}; if (isBlock(node)) { return false;