File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 8686 <h2 class="modal-title"><i class="fa fa-upload"></i> <strong>{{ load-title }}</strong></h2>
8787 <div class="load-drag-target" id="load-drag-target">
8888 <input type="file" style="display: none" name="load-form-file-upload" id="file-upload-input">
89- <p>{{ instructions }}<br><a href="#" id="file-upload-link" class="load-drag-target load-toggle action">{{ toggle-file }}</a ></p>
89+ <p>{{ instructions }}<br><button aria-labelledby="file-upload-link" type="button" id="file-upload-link" class="load-drag-target load-toggle button-link action">{{ toggle-file }}</button ></p>
9090 </div>
9191 <h2 class="modal-title"><i class="fa fa-download"></i> <strong>{{ save-but }}</strong></h2>
9292 <div class="save-buttons-container">
Original file line number Diff line number Diff line change @@ -1705,10 +1705,11 @@ function web_editor(config) {
17051705 if ( links ) {
17061706 Object . keys ( links ) . forEach ( function ( key ) {
17071707 if ( links [ key ] === "close" ) {
1708- modalLinks . push ( '<a href="#" id="modal-msg-close-link">' + key + '</a>' ) ;
1708+ modalLinks . push ( '<button type="button" area-labelledby="modal-msg-close-link" id="modal-msg-close-link">' + key + '</button>' ) ;
1709+
17091710 addCloseClickListener = true ;
17101711 } else {
1711- modalLinks . push ( '<a href=" ' + links [ key ] + '" target=" _blank">' + key + '</a >' ) ;
1712+ modalLinks . push ( '<button type="button" aria-label=" ' + key + '"class="button-link" onclick="window.open(\' ' + links [ key ] + '\', \' _blank\') ">' + key + '</button >' ) ;
17121713 }
17131714 } ) ;
17141715 }
Original file line number Diff line number Diff line change @@ -957,6 +957,20 @@ input:checked + .menu-switch-slider:before {
957957 float : right;
958958}
959959
960+ .button-link {
961+ background : none;
962+ border : none;
963+ padding : 0 ;
964+ font-size : 1rem ;
965+ color : # 326699 ;
966+ text-decoration : underline;
967+ cursor : pointer;
968+ }
969+
970+ # file-upload-link {
971+ font-weight : bold ;
972+ }
973+
960974.disabled {
961975 pointer-events : none;
962976 cursor : not-allowed;
You can’t perform that action at this time.
0 commit comments