浏览代码

Remove focus on unnecessary button

Amauri CHAMPEAUX 4 年之前
父节点
当前提交
04dbc0030f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tarteaucitron.js

+ 2 - 2
tarteaucitron.js

@@ -339,10 +339,10 @@ var tarteaucitron = {
                    html += '       <span class="tarteaucitronListCookies"></span><br/>';
                    html += '   </div>';
                    html += '   <div class="tarteaucitronAsk">';
-                   html += '       <button type="button" class="tarteaucitronAllow">';
+                   html += '       <button type="button" class="tarteaucitronAllow" tabindex="-1">';
                    html += '           <span class="tarteaucitronCheck"></span> ' + tarteaucitron.lang.allow;
                    html += '       </button> ';
-                   html += '       <button type="button" class="tarteaucitronDeny" style="visibility:hidden">';
+                   html += '       <button type="button" class="tarteaucitronDeny" style="visibility:hidden" tabindex="-1">';
                    html += '           <span class="tarteaucitronCross"></span> ' + tarteaucitron.lang.deny;
                    html += '       </button> ';
                    html += '   </div>';