Browse Source

tabindex=-1 on h2s

Heydon Pickering 8 years ago
parent
commit
a8909fe90a
3 changed files with 2 additions and 0 deletions
  1. 1 0
      docs/js/dom-scripts.js
  2. 0 0
      docs/service-worker.js
  3. 1 0
      themes/infusion/static/js/dom-scripts.js

+ 1 - 0
docs/js/dom-scripts.js

@@ -59,6 +59,7 @@
 
     if (id) {
       var newHeading = heading.cloneNode(true);
+      newHeading.setAttribute('tabindex', '-1');
 
       var container = document.createElement('div');
       container.setAttribute('class', 'h2-container');

File diff suppressed because it is too large
+ 0 - 0
docs/service-worker.js


+ 1 - 0
themes/infusion/static/js/dom-scripts.js

@@ -59,6 +59,7 @@
 
     if (id) {
       var newHeading = heading.cloneNode(true);
+      newHeading.setAttribute('tabindex', '-1');
 
       var container = document.createElement('div');
       container.setAttribute('class', 'h2-container');

Some files were not shown because too many files changed in this diff