Skip to content

Commit d7580f7

Browse files
committed
Fixed logic for the last commit of distinguishable links
1 parent ff968c2 commit d7580f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/checks/color/link-in-text-block-evaluate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ function isBlock(elm) {
2828
}
2929

3030
function linkInTextBlockEvaluate(node) {
31-
if(node.getAttribute('type') ==='button' || node.tagName.toLowerCase() === 'button' || node.getAttribute('role') !== 'button') {
31+
if(node.getAttribute('type') ==='button' || node.tagName.toLowerCase() === 'button' || node.getAttribute('role') === 'button') {
3232
return true;
3333
}
34-
34+
3535
var options = arguments.length > 1 && arguments[1] ? arguments[1] : {};
3636
if (isBlock(node)) {
3737
return false;

0 commit comments

Comments
 (0)