File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,6 @@ function isBlock(elm) {
28
28
}
29
29
30
30
function linkInTextBlockEvaluate ( node ) {
31
- if ( node . getAttribute ( 'type' ) === 'button' || node . tagName . toLowerCase ( ) === 'button' || node . getAttribute ( 'role' ) === 'button' ) {
32
- return true ;
33
- }
34
31
35
32
var options = arguments . length > 1 && arguments [ 1 ] ? arguments [ 1 ] : { } ;
36
33
if ( isBlock ( node ) ) {
@@ -45,6 +42,9 @@ function linkInTextBlockEvaluate(node) {
45
42
this . relatedNodes ( [ parentBlock ] ) ;
46
43
47
44
if ( options . a11yRule ) {
45
+ if ( node . getAttribute ( 'type' ) === 'button' || node . tagName . toLowerCase ( ) === 'button' || node . getAttribute ( 'role' ) === 'button' ) {
46
+ return true ;
47
+ }
48
48
return a11y_engine_commons . distinguishableLinkEvaluate ( node , parentBlock ) ;
49
49
}
50
50
You can’t perform that action at this time.
0 commit comments