Skip to content

Commit

Permalink
Fixed logic for the last commit of distinguishable links
Browse files Browse the repository at this point in the history
  • Loading branch information
chikara1608 committed May 16, 2024
1 parent ff968c2 commit d7580f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/checks/color/link-in-text-block-evaluate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d7580f7

Please sign in to comment.