Commit e8a60f7d by Brian Jacobel Committed by GitHub

Merge pull request #14437 from edx/bjacobel/wmd-disabled-undo-redo

Add aria-disabled to WMD undo/redo buttons
parents 62241b2b ecc9afa1
......@@ -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