diff --git a/lib/checks/color/link-in-text-block-evaluate.js b/lib/checks/color/link-in-text-block-evaluate.js index 8494e9a2..7a79eb70 100644 --- a/lib/checks/color/link-in-text-block-evaluate.js +++ b/lib/checks/color/link-in-text-block-evaluate.js @@ -28,6 +28,10 @@ function isBlock(elm) { } function linkInTextBlockEvaluate(node) { + 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;