From 856d839ce9ef71da6b08c328c9922aaea46e4f56 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sun, 11 Jan 2015 09:25:41 -0500 Subject: [PATCH] Don't set tabindex, as it causes unwanted focus outlines. Revisit this later when we do accessibility update. Resolves issue #997. --- unpacked/jax/output/HTML-CSS/jax.js | 2 +- unpacked/jax/output/SVG/jax.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js index f7634e492..b69b4a8e6 100644 --- a/unpacked/jax/output/HTML-CSS/jax.js +++ b/unpacked/jax/output/HTML-CSS/jax.js @@ -2826,7 +2826,7 @@ var alttext = this.Get("alttext"); if (alttext && !span.getAttribute("aria-label")) span.setAttribute("aria-label",alttext); if (!span.getAttribute("role")) span.setAttribute("role","math"); - span.setAttribute("tabindex",0); +// span.setAttribute("tabindex",0); // causes focus outline, so disable for now var stack = HTMLCSS.createStack(span), box = HTMLCSS.createBox(stack), math; // Move font-size from outer span to stack to avoid line separation // problem in strict HTML mode diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js index 92d00f785..a916617c5 100644 --- a/unpacked/jax/output/SVG/jax.js +++ b/unpacked/jax/output/SVG/jax.js @@ -2081,7 +2081,7 @@ var alttext = this.Get("alttext"); if (alttext && !svg.element.getAttribute("aria-label")) span.setAttribute("aria-label",alttext); if (!svg.element.getAttribute("role")) span.setAttribute("role","math"); - span.setAttribute("tabindex",0); +// span.setAttribute("tabindex",0); // causes focus outline, so disable for now span.appendChild(svg.element); svg.element = null; // // Handle indentalign and indentshift for single-line displays