1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/// Accessible name for the carousel region.
pub const CAROUSEL_ARIA_LABEL: &str = "Carousel";
/// Role description announced for the carousel region.
pub const CAROUSEL_ROLE_DESCRIPTION: &str = "carousel";
/// Announces the active slide after manual navigation.
pub const CAROUSEL_LIVE_POLITE: &str = "polite";
/// Role description announced for each slide.
pub const CAROUSEL_SLIDE_ROLE_DESCRIPTION: &str = "slide";
/// Accessible name prefix for each slide.
pub const CAROUSEL_SLIDE_LABEL: &str = "Slide";
/// Word separating the slide position and slide count.
pub const CAROUSEL_OF_LABEL: &str = "of";
/// Accessible name prefix for a dot navigation button.
pub const CAROUSEL_DOT_LABEL_PREFIX: &str = "Go to slide";
/// Accessible label for the dot navigation group.
pub const CAROUSEL_DOT_GROUP_LABEL: &str = "Choose slide";
/// Accessible name of the previous-slide button.
pub const CAROUSEL_PREVIOUS_LABEL: &str = "Previous slide";
/// Accessible name of the next-slide button.
pub const CAROUSEL_NEXT_LABEL: &str = "Next slide";
/// Visible glyph for the previous-slide control.
pub const CAROUSEL_PREVIOUS_GLYPH: &str = "‹";
/// Visible glyph for the next-slide control.
pub const CAROUSEL_NEXT_GLYPH: &str = "›";
/// Attribute value for a selected/current item.
pub const CAROUSEL_ATTR_TRUE: &str = "true";
/// Attribute value for an unselected/non-current item.
pub const CAROUSEL_ATTR_FALSE: &str = "false";
/// Keyboard key that moves to the previous slide.
pub const CAROUSEL_KEY_ARROW_LEFT: &str = "ArrowLeft";
/// Keyboard key that moves to the next slide.
pub const CAROUSEL_KEY_ARROW_RIGHT: &str = "ArrowRight";
/// Keyboard key that moves to the first slide.
pub const CAROUSEL_KEY_HOME: &str = "Home";
/// Keyboard key that moves to the last slide.
pub const CAROUSEL_KEY_END: &str = "End";
/// Selector for interactive carousel buttons.
pub const CAROUSEL_BUTTON_SELECTOR: &str = "button";
/// Minimum horizontal movement, in CSS pixels, that counts as a swipe.
pub const CAROUSEL_SWIPE_THRESHOLD: i32 = 32;