From 3261f5994f794311f3f2b1b46a0824ad95143527 Mon Sep 17 00:00:00 2001 From: Jason Webb Date: Mon, 11 Jan 2021 16:05:20 -0600 Subject: [PATCH] #21 differentiating adjacent synched carousels with regionLabel. --- docs/index.html | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/docs/index.html b/docs/index.html index 57171f585..a4226a88f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -605,7 +605,8 @@

Slider Syncing

arrows: false, fade: true, asNavFor: '.slider-nav', - instructionsText: 'Changing this current slide of this carousel will change the current slide of the carousel that follows.' + instructionsText: 'Changing this current slide of this carousel will change the current slide of the thumbnail carousel that follows.', + regionLabel: 'main image carousel' }); $('.slider-nav').slick({ @@ -614,8 +615,8 @@

Slider Syncing

asNavFor: '.slider-for', dots: true, centerMode: true, - focusOnSelect: true, - instructionsText: 'Changing the current slide of this carousel will change the current slide of the preceding carousel.' + instructionsText: 'Changing the current slide of this carousel will change the current slide of the preceding main image carousel.', + regionLabel: 'thumbnail carousel' });
@@ -625,7 +626,18 @@

Slider Syncing

TIP: always explain how sliders are synced!

-

Use the new instructionsText setting to provide clear, simple instructions for screen reader users to explain what happens when they interact with these sliders. These instructions will be added as screen-reader-only text at the beginning of the slider.

+

Use the new instructionsText setting to provide clear, simple instructions for screen reader users to explain what happens when they interact with these sliders. These instructions will be added as screen-reader-only text at the beginning of the slider.

+
+
+ +
+
+ +
+ +
+

TIP: differentiate adjacent carousels

+

Use the new regionLabel setting to change to aria-label on the wrapper regions so that they are easier for screen reader users to tell apart. Even better, use that same text in the instructions you provide so these users know what to listen for as they explore the page!

@@ -999,7 +1011,8 @@

Go Get It

arrows: false, fade: true, asNavFor: '.slider-nav', - instructionsText: 'Changing this current slide of this carousel will change the current slide of the carousel that follows.' + instructionsText: 'Changing this current slide of this carousel will change the current slide of the thumbnail carousel that follows.', + regionLabel: 'main image carousel' }); // b. Control slider @@ -1010,9 +1023,9 @@

Go Get It

asNavFor: '.slider-for', dots: true, centerMode: true, - focusOnSelect: true, slide: 'div', - instructionsText: 'Changing the current slide of this carousel will change the current slide of the preceding carousel.' + instructionsText: 'Changing the current slide of this carousel will change the current slide of the preceding main image carousel.', + regionLabel: 'thumbnail carousel' }); // Right to Left