We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5c8e34 commit ff968c2Copy full SHA for ff968c2
lib/checks/color/link-in-text-block-evaluate.js
@@ -28,6 +28,10 @@ function isBlock(elm) {
28
}
29
30
function linkInTextBlockEvaluate(node) {
31
+ if(node.getAttribute('type') ==='button' || node.tagName.toLowerCase() === 'button' || node.getAttribute('role') !== 'button') {
32
+ return true;
33
+ }
34
+
35
var options = arguments.length > 1 && arguments[1] ? arguments[1] : {};
36
if (isBlock(node)) {
37
return false;
0 commit comments