Commit ecc9afa1 by Brian Jacobel

Add aria-disabled to WMD undo/redo buttons

parent 8a53f3b6
......@@ -1408,10 +1408,18 @@
}
});
}
// This line does not appear in vanilla WMD. It was added by edX to improve accessibility.
// It should become a separate commit applied to WMD's official HEAD if we remove this edited version
// of WMD from Git and install it from NPM / a maintained public fork.
button.removeAttribute('aria-disabled');
}
else {
image.style.backgroundPosition = button.XShift + ' ' + disabledYShift;
button.onmouseover = button.onmouseout = button.onclick = function() { };
// This line does not appear in vanilla WMD. It was added by edX to improve accessibility.
// It should become a separate commit applied to WMD's official HEAD if we remove this edited version
// of WMD from Git and install it from NPM / a maintained public fork.
button.setAttribute('aria-disabled', true);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment