From 494ed99b361405fcb81f8b20bafd6b063315ccc8 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Thu, 15 Oct 2020 12:35:48 -0400 Subject: [PATCH] Remove incorrect aria attribs --- docs/assets/plugins/code-block/code-block.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/docs/assets/plugins/code-block/code-block.js b/docs/assets/plugins/code-block/code-block.js index b6ed38d5c..8f1df3e4b 100644 --- a/docs/assets/plugins/code-block/code-block.js +++ b/docs/assets/plugins/code-block/code-block.js @@ -48,10 +48,6 @@
@@ -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);