Fix accessibility issue with expand CW button

This commit is contained in:
Jason McBrayer 2019-11-08 10:38:46 -05:00
parent f6d0cfee61
commit ecdaabff33

View File

@ -72,7 +72,7 @@ function expandCWButtonPrepare()
{ {
var theButton = document.querySelector('#expandCWs'); var theButton = document.querySelector('#expandCWs');
if (!theButton) { if (!theButton) {
theButton = document.createElement('p'); theButton = document.createElement('button');
theButton.id = "expandCWs"; theButton.id = "expandCWs";
theButton.textContent = "Expand CWs"; theButton.textContent = "Expand CWs";
theButton.classList.toggle('button'); theButton.classList.toggle('button');