Hotfix/#460 slick carousel a11y fixes #478
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Doesn't necessarily close a ticket. It does improve the situation for #460.
DESCRIPTION
I've added some additional features to help SlickJS do better at accessible content:
wp.a11y.speak()
to update an aria-live region with the carousel status, specifically when the pause button is used or when the arrow navigation is used.The dot navigation didn't need any additions, since it seems to be using a tablist role to provide feedback about the amount of slides there are and what button is activated (eg. "3 of 3").
SCREENSHOTS
No significant styling was added. The pause button will sit in the bottom left, below the slider, by default.
I do have a screenshot of a test carousel and the NVDA speech viewer:
OTHER
STEPS TO VERIFY
Create a page with a carousel on it and verify that the pause button appears. If you have NVDA or some other screenreader installed, you should be able to use that to test the verbal feedback by clicking/keyboarding the Previous/Next and Pause buttons.