From f023943af06cdc0c590a255ebdccd0df37468d40 Mon Sep 17 00:00:00 2001
From: Martin Leblanc <m26lebla@uwaterloo.ca>
Date: Tue, 11 Mar 2025 13:36:47 -0400
Subject: [PATCH] ISTWCMS-5650: Add the click event to the small buttons in
 order to pause the slideshow when interacted with

---
 src/patterns/04-components/banners/banners.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/patterns/04-components/banners/banners.js b/src/patterns/04-components/banners/banners.js
index 4cb679fa..10153f7d 100644
--- a/src/patterns/04-components/banners/banners.js
+++ b/src/patterns/04-components/banners/banners.js
@@ -99,7 +99,7 @@
 
         // Pause carousel when clicking pagination dots.
         document.addEventListener('click', function (event) {
-          if (event.target.matches('.flickity-page-dots')) {
+          if (event.target.matches('.flickity-page-dots .dot')) {
             var banner = event.target.closest('.uw-carousel__banner');
             if (banner) {
               var pauseButton = banner.querySelector('.uw-pause');
-- 
GitLab