Skip to content

Add accessibility functionality to onscreen slides #1

Closed
KelseyCooper wants to merge 2 commits intomasterfrom
is-visible
Closed

Add accessibility functionality to onscreen slides #1
KelseyCooper wants to merge 2 commits intomasterfrom
is-visible

Conversation

@KelseyCooper
Copy link
Copy Markdown

Overview

This PR copies all functionality given here:
metafizzy#1032

Flickity automatically sets all slides to aria-hidden="true" except the one currently selected.

This is bad for accessibility. Anything that is aria-hidden should not have focusable elements. This creates sliders that can only show one slide at a time to screen readers, or that will not show the furthest most slides at all if contain: true.

Usage

This PR will be kept open. If any changes are released to flickity we pull into our fork then rebase this branch.

To update to use this PR change package.json:
"flickity": "^2.2.2"
to
"flickity": "https://github.com/fluorescent/flickity#af2adbb"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant