From b92dc7bb816b4b6699e4e10d645a5400f550aba4 Mon Sep 17 00:00:00 2001 From: Mykola Veriga <33792988+Mykola-Veriga@users.noreply.github.com> Date: Tue, 25 Jun 2019 17:34:56 +0300 Subject: [PATCH 1/2] Accessibility: name for button and alt for image Accessibility: name for button and alt for image --- src/jquery.ddslick.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jquery.ddslick.js b/src/jquery.ddslick.js index 4e05f9f..466de70 100644 --- a/src/jquery.ddslick.js +++ b/src/jquery.ddslick.js @@ -43,7 +43,7 @@ }; var closeListenerInitialized = false; - var ddSelectHtml = "
"; + var ddSelectHtml = "
"; var ddOptionsHtml = ""; //CSS for ddSlick @@ -371,7 +371,7 @@ //If set to display to full html, add html if (settings.showSelectedHTML) { var ddSelectedData = $("
"); - if(selectedData.imageSrc) ddSelectedData.append($("").addClass("dd-selected-image" + (settings.imagePosition === "right" ? " dd-image-right" : "")).attr("src", selectedData.imageSrc)); + if(selectedData.imageSrc) ddSelectedData.append($("").addClass("dd-selected-image" + (settings.imagePosition === "right" ? " dd-image-right" : "")).attr("src", selectedData.imageSrc).attr('alt', 'dd-selected-image')); if(selectedData.text) ddSelectedData.append($("