Don't set tabindex, as it causes unwanted focus outlines. Revisit this later when we do accessibility update. Resolves issue #997.

This commit is contained in:
Davide P. Cervone 2015-01-11 09:25:41 -05:00
parent ae48c34e64
commit 856d839ce9
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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