Remove incorrect aria attribs

pull/261/head
Cory LaViska 2020-10-15 12:35:48 -04:00
rodzic 912b4167d7
commit 494ed99b36
1 zmienionych plików z 1 dodań i 13 usunięć

Wyświetl plik

@ -48,10 +48,6 @@
<div
class="code-block__resizer"
tabindex="0"
role="scrollbar"
aria-valuenow="0"
aria-valuemin="0"
aria-valuemax="100"
>
<sl-icon name="grip-horizontal"></sl-icon>
</div>
@ -143,15 +139,7 @@
}
};
const setWidth = width => {
preview.style.width = width + 'px';
const totalWidth = preview.parentElement.clientWidth;
const currentWidth = preview.clientWidth;
const valuenow = Math.round((currentWidth / totalWidth) * 100);
resizer.setAttribute('aria-valuenow', valuenow);
};
const setWidth = width => preview.style.width = width + 'px';
resizer.addEventListener('mousedown', dragStart);
resizer.addEventListener('touchstart', dragStart);