-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image Carousel Example: Use buttons for controls and make rotation control always visible #1018
Conversation
The ARIA Authoring Practices (APG) Task Force just discussed The full IRC log of that discussion<AnnAbbott> TOPIC: Reviewers needed for revised carousel<AnnAbbott> PR 1018: https://github.com//pull/1018 <zcorpan> GitHub: https://github.com//pull/1018 <AnnAbbott> mck: issues for Windows, Mac & iOS <jongund> https://raw.githack.com/w3c/aria-practices/issue1007-visible-pause-carousel/examples/carousel/carousel-1/carousel-1.html <AnnAbbott> mck: goal is fully reviewed by May 7 and ready to merge <MarkMcCarthy> I cannot volunteer at that this time, we have several all hands projects tying me up. Sorry! <AnnAbbott> Jemma volunteered <AnnAbbott> jn volunteered <AnnAbbott> mck: other issues should go into 971 |
Please note this issue comment re: size: #971 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some commons in a test file! If it's ok, I'm going to follow up with a commit to fix it to help out.
hey @jongund! I added a commit to fix up the existing attribute tests. I also added a couple tests and have two observations: I noticed a bug with You also might notice the test I wrote for |
@spectranaut I will look into the aria-live issue, it should be pretty easy to fix The aria-disabled is used instead of disable property so the button stays in tab order for screen reader users. When focus is in the carousel the carousel automatically pauses, so the pause button is essentially disabled. |
Ok I added more tests for keyboard interaction, and I notice the Keyboard Interaction table needs to be updated now that the "pause" button no longer hides. Other than that it looks good :) |
@jongund wrote:
Excellent, thank you! Since we never want it live when auto-rotating, can the change of aria-live be triggered based on changes to the auto-rotation state regardless of which user event causes rotation to stop or start?
After discussing with Valerie and Jemma, we concluded that we can remove aria-disabled because, in practice, the button is never disabled. It is still operable with the mouse, screen reader reading cursor, or touch cursor even when rotation is paused automatically. And, it is useful to be able to click or tap it even when automatically paused; that causes the carousel to stay stopped. |
@spectranaut Thank you for adding the regression tests I will make the changes for disabled button and the live region |
…'current value is'
@spectranaut @mcking65 @a11ydoer I made the changes to the code to fix the live region issue, so it is ready for review and hopefully merging and I also removed the |
…bout hiding rotation control.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jongund, thank you; this is looking really good. I fixed some editorial issues. It's ready to go now.
There is one thing we can address later: the view options are not accessible; we need to put aria-current on the link that is currently active. We don't need to hold this up for that though.
Image Carousel Example: Use buttons for controls and make rotation control always visible (pull #1018) Resolves issue #1007 by: * making the stop/start rotation button always visible. * Using button elements instead of links for the next and previous slide controls. Also: * Allows user to change between 2 view options: one with controls and captions overlayed on the images and one with them outside the image frames. * Improves documentation in the accessibility features section. * Adds regression tests.
Resolves issue #1007 by making the stop/start rotation button always visible and uses button elements instead of links for the next and previous slide elements.
Preview Link
The revised carousel can be seen in the issue1007-visible-pause-carousel branch.
Preview | Diff