diff --git a/static/components.js b/static/components.js index f6227eec11..a76f062abb 100644 --- a/static/components.js +++ b/static/components.js @@ -44,6 +44,7 @@ function enable_image_compare() { slider.min = style.getPropertyValue('--slider-min').replace('%', ''); slider.max = style.getPropertyValue('--slider-max').replace('%', ''); slider.value = style.getPropertyValue('--slider-value').replace('%', ''); + slider.ariaLabel = `Slider to compare "${img_cmp.getAttribute('data-title-a')}" and "${img_cmp.getAttribute('data-title-b')}"` img_cmp.appendChild(slider); // setup callback slider.addEventListener("input", (event) => {