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 86
86
<h2 class="modal-title"><i class="fa fa-upload"></i> <strong>{{ load-title }}</strong></h2>
87
87
<div class="load-drag-target" id="load-drag-target">
88
88
<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>
90
90
</div>
91
91
<h2 class="modal-title"><i class="fa fa-download"></i> <strong>{{ save-but }}</strong></h2>
92
92
<div class="save-buttons-container">
Original file line number Diff line number Diff line change @@ -1705,10 +1705,11 @@ function web_editor(config) {
1705
1705
if ( links ) {
1706
1706
Object . keys ( links ) . forEach ( function ( key ) {
1707
1707
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
+
1709
1710
addCloseClickListener = true ;
1710
1711
} 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 >' ) ;
1712
1713
}
1713
1714
} ) ;
1714
1715
}
Original file line number Diff line number Diff line change @@ -959,6 +959,20 @@ input:checked + .menu-switch-slider:before {
959
959
float : right;
960
960
}
961
961
962
+ .button-link {
963
+ background : none;
964
+ border : none;
965
+ padding : 0 ;
966
+ font-size : 1rem ;
967
+ color : # 326699 ;
968
+ text-decoration : underline;
969
+ cursor : pointer;
970
+ }
971
+
972
+ # file-upload-link {
973
+ font-weight : bold ;
974
+ }
975
+
962
976
.disabled {
963
977
pointer-events : none;
964
978
cursor : not-allowed;
You can’t perform that action at this time.
0 commit comments