Skip to content

Commit 200f4e7

Browse files
authored
Merge pull request #44 from browserstack/distinguishable-links-fix
Updated distinguishable link evaluate method to pass button links
2 parents 264c768 + 1810d17 commit 200f4e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +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') {
32+
return true;
33+
}
34+
3135
var options = arguments.length > 1 && arguments[1] ? arguments[1] : {};
3236
if (isBlock(node)) {
3337
return false;

0 commit comments

Comments
 (0)