Fix "copy link" button not focusable

The "copy link" button was not an actual button but a span, so it was
ignored in keyboard navigation.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2019-08-25 05:16:09 +02:00
Родитель e45e3750e1
Коммит 671feab186
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -67,7 +67,7 @@ templates['callinfoview'] = template({"1":function(container,depth0,helpers,part
},"7":function(container,depth0,helpers,partials,data) {
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {});
return " <div class=\"clipboard-button\"><span class=\"button icon-clippy\"></span></div>\n <div class=\"password-button\">\n <span class=\"button "
return " <div class=\"clipboard-button\"><button class=\"button icon-clippy\"></button></div>\n <div class=\"password-button\">\n <span class=\"button "
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.hasPassword : depth0),{"name":"if","hash":{},"fn":container.program(8, data, 0),"inverse":container.program(10, data, 0),"data":data})) != null ? stack1 : "")
+ "\"></span>\n <div class=\"popovermenu password-menu menu-right\">\n <ul>\n <li>\n <span class=\"menuitem "
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.hasPassword : depth0),{"name":"if","hash":{},"fn":container.program(8, data, 0),"inverse":container.program(10, data, 0),"data":data})) != null ? stack1 : "")
@ -79,7 +79,7 @@ templates['callinfoview'] = template({"1":function(container,depth0,helpers,part
},"10":function(container,depth0,helpers,partials,data) {
return "icon-no-password";
},"12":function(container,depth0,helpers,partials,data) {
return " <div class=\"share-link-options\">\n <div class=\"clipboard-button\"><span class=\"button icon-clippy\"></span></div>\n </div>\n";
return " <div class=\"share-link-options\">\n <div class=\"clipboard-button\"><button class=\"button icon-clippy\"></button></div>\n </div>\n";
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {});

Просмотреть файл

@ -15,7 +15,7 @@
<label for="link-checkbox" class="link-checkbox-label">{{linkCheckboxLabel}}</label>
{{/if}}
{{#if isPublic}}
<div class="clipboard-button"><span class="button icon-clippy"></span></div>
<div class="clipboard-button"><button class="button icon-clippy"></button></div>
<div class="password-button">
<span class="button {{#if hasPassword}}icon-password{{else}}icon-no-password{{/if}}"></span>
<div class="popovermenu password-menu menu-right">
@ -38,7 +38,7 @@
{{/if}}
{{#if showShareLink}}
<div class="share-link-options">
<div class="clipboard-button"><span class="button icon-clippy"></span></div>
<div class="clipboard-button"><button class="button icon-clippy"></button></div>
</div>
{{/if}}
</div>