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) {
2828}
2929
3030function linkInTextBlockEvaluate ( node ) {
31- if ( node . getAttribute ( 'type' ) === 'button' || node . tagName . toLowerCase ( ) === 'button' || node . getAttribute ( 'role' ) === 'button' ) {
32- return true ;
33- }
3431
3532 var options = arguments . length > 1 && arguments [ 1 ] ? arguments [ 1 ] : { } ;
3633 if ( isBlock ( node ) ) {
@@ -45,6 +42,9 @@ function linkInTextBlockEvaluate(node) {
4542 this . relatedNodes ( [ parentBlock ] ) ;
4643
4744 if ( options . a11yRule ) {
45+ if ( node . getAttribute ( 'type' ) === 'button' || node . tagName . toLowerCase ( ) === 'button' || node . getAttribute ( 'role' ) === 'button' ) {
46+ return true ;
47+ }
4848 return a11y_engine_commons . distinguishableLinkEvaluate ( node , parentBlock ) ;
4949 }
5050
You can’t perform that action at this time.
0 commit comments