-
Notifications
You must be signed in to change notification settings - Fork 347
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
Collect feedback on auto-rotating image carousel example introduced in APG 1.1 Release 3 (January 2019) #971
Comments
The content over the image, and previous/next button are difficult to see due to the busyness of the image behind it. Add a background color to the buttons and insert CSS color block between the text and the image so that they can be visible even when the background image is busy. |
I think that the button to stop the automatic slide show should be visible by default. Actually, if you have an attention-deficit disorder, you're not necessarily using keyboard to navigate in websites. And you can't guess there is a button to stop the animation. |
At first I was intrigued by the idea of pause on hover/focus, but I think we need a visible by default pause button in addition to that functionality. The main reason for pause (WCAG 2.2.2) is so the user with a cognitive disability is not distracted when they are elsewhere on the page. The current pause functionality requires mouse or keyboard focus to remain on the component, which could be frustrating for someone who wants to do stuff elsewhere on the page without the rotating carousel distracting. |
+1 |
Also, I would think this is an issue for a user navigating by voice command if she/he can't see the Pause button. |
Two points :
Current code: <a class="next carousel-control" role="button" tabindex="0" aria-controls="myCarousel-items" aria-label="Next Slide">
<svg width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg">
<polygon points="0 0 30 15 0 30" stroke="white" fill="white" stroke-width="2"></polygon>
</svg>
</a> Fixed code: <button type="button" class="next carousel-control" aria-controls="myCarousel-items">
<span class="sr-only">Next Slide</span>
<svg width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg">
<polygon points="0 0 30 15 0 30" stroke="white" fill="white" stroke-width="2"></polygon>
</svg>
</button> |
@okeul @jnurthen @DavidMacDonald |
Note that the visually hidden stop button doesn't work on iOS with VoiceOver on. you can hear the announcement, double tap to activate, but nothing happens. (believe this is a bug with iOS voiceover not activating elements hidden from view or something). should be fixed when the pause icon becomes visible, i'd imagine. but just wanted to make mention of it... |
I know this is older, but Salesforce has a Carousel that's worth looking at for inspiration. It's based on a tabset semantic. |
@jnurthen The Microsoft carousel pause button would not pass WCAG 2.1 contrast. You can see this on the second panel. The pause button is barely discernible to the right of the dots (which are also somewhat difficult to see). |
Regarding adding a 3px black border around the left and right triangles and the pause button so that they pass WCAG 2.1's Non-text Contrast SC 1.4.11, this is similar to the advice for infographics in the Understanding document for the SC. Regarding the 3px value itself, I was remembering earlier draft versions of the SC, where they were originally thinking of requiring a 4.5:1 contrast for graphics and UI components, unless they were "thicker" - which was defined as "at least 3 CSS pixels" - then they were allowed to be 3:1. |
@jongund Some comments on the Carousel from yesterday's APG call:
|
Note the svg size does not have to be made bigger. It is fine to have a hit area that is bigger than the actual button size. Adding padding to the button increases the hit area without making the button bigger. IMO this is fine in this case. |
@jnurthen Please note that increasing the size of the svg in this particular code has the same effect as adding padding. It doesn't make the visible button (the rect) bigger. So I think we are saying the same thing. :) |
I noticed that the example does not follow the authoring practices documentation for keyboard focus The Authoring practices state that elements in the carousel receiving keyboard focus permanently pauses the carousel unless the user manually restarts it, but the example resumes the auto rotation when focus leaves the carousel: |
I pointed this out on the issue tracker for the design pattern itself (#970), but wanted to mention it here as well and second the comment by @juliemoynat-tanaguru regarding how the hidden unless focused on pause button impacts users with ADHD. The current example doesn't proved a way for users with ADHD who do not navigate using a keyboard to pause the content. Making the pause button visible would be a good change, but I think in addition the example should support permanently pausing the rotation if the user changes the slide using any of the carousel controls. Pausing carousels for this reason is the most commonly supported method for pausing carousels on the web (see Amazon.com and Microsoft.com as examples). I have ADHD myself and because this method is the most common, its the first method I try when I see a carousel on the web. In addition, pause buttons can be hard to find especially because they are so rare and not consistently positioned, and because the disruption caused by the rotating slides can make this even more difficult, its important that we support expected methods that are easy to execute (next and previous buttons are consistently placed for example). For myself, there have definitely been times where a page had a pause button, but did not pause when the slide was rotated by the user, and the slide rotation was so disruptive I could not find the pause button before needing to take a break from using the web site or application. In the case of this example, the button would be easy to find if it were visible without focus, but this example and the design pattern should still support user expected behavior here, as they set examples for others to follow that might not create such highly visible pause buttons |
I believe we have addressed all feedback in the latest editor's draft of the carousel. If not, please raise a new issue with any bugs or suggestions. Thank you everyone for all the wonderful input! |
Collect feedback on the Feb 7, 2019 version of the Auto-Rotating Image Carousel Example
and make updates to the editors draft of the example for the July 2019 publication of APG 1.1.
Feedback Issues
Based on discussion in this issue, the following issues requesting changes to the example have been raised:
The text was updated successfully, but these errors were encountered: