File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 508508 copy . title = dv . edit . phrase ( editOriginals ? "Push to left" : "Revert chunk" ) ;
509509 copy . chunk = chunk ;
510510 copy . style . top = ( chunk . origTo > chunk . origFrom ? top : dv . edit . heightAtLine ( chunk . editFrom , "local" ) - sTopEdit ) + "px" ;
511+ copy . setAttribute ( "role" , "button" ) ;
511512
512513 if ( editOriginals ) {
513514 var topReverse = dv . edit . heightAtLine ( chunk . editFrom , "local" ) - sTopEdit ;
518519 origFrom : chunk . editFrom , origTo : chunk . editTo } ;
519520 copyReverse . style . top = topReverse + "px" ;
520521 dv . type == "right" ? copyReverse . style . left = "2px" : copyReverse . style . right = "2px" ;
522+ copyReverse . setAttribute ( "role" , "button" ) ;
521523 }
522524 }
523525 }
599601
600602 function buildGap ( dv ) {
601603 var lock = dv . lockButton = elt ( "div" , null , "CodeMirror-merge-scrolllock" ) ;
604+ lock . setAttribute ( "role" , "button" ) ;
602605 var lockWrap = elt ( "div" , [ lock ] , "CodeMirror-merge-scrolllock-wrap" ) ;
603606 CodeMirror . on ( lock , "click" , function ( ) { setScrollLock ( dv , ! dv . lockScroll ) ; } ) ;
604607 var gapElts = [ lockWrap ] ;
You can’t perform that action at this time.
0 commit comments