From 25942d62b1a50a37b2b560cda4a6ca024b9bd187 Mon Sep 17 00:00:00 2001 From: Romain Emery Date: Mon, 4 Nov 2024 09:52:59 +0100 Subject: [PATCH 1/3] add gallery label (#3701) --- src/implementations/twig/components/gallery/README.md | 1 + .../components/gallery/__snapshots__/gallery.test.js.snap | 5 +++++ .../twig/components/gallery/gallery.html.twig | 5 +++++ src/specs/components/gallery/demo/data.js | 2 ++ 4 files changed, 13 insertions(+) diff --git a/src/implementations/twig/components/gallery/README.md b/src/implementations/twig/components/gallery/README.md index cc4b8a71e61..f8c0211a312 100644 --- a/src/implementations/twig/components/gallery/README.md +++ b/src/implementations/twig/components/gallery/README.md @@ -36,6 +36,7 @@ npm install --save @ecl/twig-component-gallery - **"visible_items"** (integer) (default: 8) Number of visible items in an expandable gallery - **"expandable"** (boolean) (default: true) collapsible/expandable gallery - **"icon_path"** (string) (default: '') Path to the icon sprite +- **"sr_gallery_label"** (string) (default: ''): additional label for the gallery, providing instruction; for screen readers - **"sr_video_label"** (string) (default: ''): additional label for the video items; for screen readers - **"sr_video_player"** (string) (default: ''): additional label for the video player; for screen readers - **"footer"** (object) (default: {}) Footer link diff --git a/src/implementations/twig/components/gallery/__snapshots__/gallery.test.js.snap b/src/implementations/twig/components/gallery/__snapshots__/gallery.test.js.snap index 4c782577305..8b9d4778ac5 100644 --- a/src/implementations/twig/components/gallery/__snapshots__/gallery.test.js.snap +++ b/src/implementations/twig/components/gallery/__snapshots__/gallery.test.js.snap @@ -3,6 +3,7 @@ exports[`Gallery Default renders correctly 1`] = `