From 10cb32f8a8991d701101b3e74799c251b4b10475 Mon Sep 17 00:00:00 2001 From: "Mark J. Becker" Date: Mon, 23 Aug 2021 11:57:25 +0200 Subject: [PATCH] CIF-2279 - Improve accessibility of carousel components --- .../commerce/carousel/v1/carousel/card.html | 2 +- .../commerce/carousel/v1/carousel/carousel.html | 4 ++-- .../v1/carousel/clientlibs/css/carousel.css | 10 +++++++++- .../v1/categorycarousel/card.html | 2 +- .../clientlibs/css/productcarousel.css | 10 +++++++++- .../v1/productcarousel/productcard.html | 5 ++--- .../components/commerce/carousel/carouselTest.js | 16 ++++++++-------- 7 files changed, 32 insertions(+), 17 deletions(-) diff --git a/ui.apps/src/main/content/jcr_root/apps/core/cif/components/commerce/carousel/v1/carousel/card.html b/ui.apps/src/main/content/jcr_root/apps/core/cif/components/commerce/carousel/v1/carousel/card.html index 6f84568030..f88bee7a77 100644 --- a/ui.apps/src/main/content/jcr_root/apps/core/cif/components/commerce/carousel/v1/carousel/card.html +++ b/ui.apps/src/main/content/jcr_root/apps/core/cif/components/commerce/carousel/v1/carousel/card.html @@ -14,7 +14,7 @@ ~ limitations under the License. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/--> \ No newline at end of file diff --git a/ui.apps/src/main/content/jcr_root/apps/core/cif/components/commerce/carousel/v1/carousel/carousel.html b/ui.apps/src/main/content/jcr_root/apps/core/cif/components/commerce/carousel/v1/carousel/carousel.html index 30ba183074..a8596d201d 100644 --- a/ui.apps/src/main/content/jcr_root/apps/core/cif/components/commerce/carousel/v1/carousel/carousel.html +++ b/ui.apps/src/main/content/jcr_root/apps/core/cif/components/commerce/carousel/v1/carousel/carousel.html @@ -17,7 +17,8 @@

${properties.jcr:title}

- + +
@@ -25,6 +26,5 @@

diff --git a/ui.apps/src/main/content/jcr_root/apps/core/cif/components/commerce/carousel/v1/carousel/clientlibs/css/carousel.css b/ui.apps/src/main/content/jcr_root/apps/core/cif/components/commerce/carousel/v1/carousel/clientlibs/css/carousel.css index bd4a0603e5..144f7cd42e 100644 --- a/ui.apps/src/main/content/jcr_root/apps/core/cif/components/commerce/carousel/v1/carousel/clientlibs/css/carousel.css +++ b/ui.apps/src/main/content/jcr_root/apps/core/cif/components/commerce/carousel/v1/carousel/clientlibs/css/carousel.css @@ -22,7 +22,15 @@ position: absolute; top: 50%; width: 20px; - color: dimgrey; + border-color: dimgrey; +} + +.carousel__btn:focus-visible { + border-color: black; +} + +.carousel__btn:disabled { + border-color: lightgrey; } .carousel__btn--next { diff --git a/ui.apps/src/main/content/jcr_root/apps/core/cif/components/commerce/categorycarousel/v1/categorycarousel/card.html b/ui.apps/src/main/content/jcr_root/apps/core/cif/components/commerce/categorycarousel/v1/categorycarousel/card.html index a50dbc0d7b..e022179a89 100644 --- a/ui.apps/src/main/content/jcr_root/apps/core/cif/components/commerce/categorycarousel/v1/categorycarousel/card.html +++ b/ui.apps/src/main/content/jcr_root/apps/core/cif/components/commerce/categorycarousel/v1/categorycarousel/card.html @@ -14,7 +14,7 @@ ~ limitations under the License. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/-->