We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37ecaa0 commit aeda505Copy full SHA for aeda505
static/components.js
@@ -44,6 +44,7 @@ function enable_image_compare() {
44
slider.min = style.getPropertyValue('--slider-min').replace('%', '');
45
slider.max = style.getPropertyValue('--slider-max').replace('%', '');
46
slider.value = style.getPropertyValue('--slider-value').replace('%', '');
47
+ slider.ariaLabel = `Slider to compare "${img_cmp.getAttribute('data-title-a')}" and "${img_cmp.getAttribute('data-title-b')}"`
48
img_cmp.appendChild(slider);
49
// setup callback
50
slider.addEventListener("input", (event) => {
0 commit comments