Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The link that opens and closes the toolbar drawer doesn't show focus. This can be confusing to keyboard users, and is a failure of WCAG 2 2.4.7 AA success criteria. I think something like changing the color of the triangle to white on focus and hover would be nice.
Comment | File | Size | Author |
---|---|---|---|
#11 | toolbar.png | 558 bytes | deekayen |
#4 | focus_shortcuts.png | 38.91 KB | mgifford |
#3 | toolbar-togglefocus.patch | 831 bytes | casey |
#3 | toolbar.png | 619 bytes | casey |
Comments
Comment #1
Everett Zufelt CreditAttribution: Everett Zufelt commentedIf a keyboard only user were on a system where the toolbar was closed, would there be any way for them to access the functionality of the toolbar without guessing about when the open control has focus?
Comment #2
YaxBalamAhaw CreditAttribution: YaxBalamAhaw commentedAs far as I can tell, the toolbar drawer is only used for "shortcuts," so keyboard-only users could access any page without using the shortcuts; but if the drawer is closed, a keyboard-only user would have to guess that the "open drawer" link had focus to open the drawer and use the shortcuts.
Comment #3
casey CreditAttribution: casey commentedComment #4
mgiffordThis modification works, but changes the display so that the arrow isn't visible when it is focused.
I've attached screenshots that demonstrates the problem I'm seeing in my sandbox. Let me know if you want to see it in action.
Comment #5
Damien Tournoud CreditAttribution: Damien Tournoud commentedShouldn't/couldn't we open the shortcuts drawer automatically on keyboard focus?
Comment #6
Everett Zufelt CreditAttribution: Everett Zufelt commented@Damien
Opening the shortcut drawer automatically on keyboard focus seems like a good idea However, if this were the case keyboard only users might end up having to tab through all shortcuts to get past the drawer every time. Providing the ability to open or close the drawer makes the most sense.
Comment #7
YaxBalamAhaw CreditAttribution: YaxBalamAhaw commented@mgifford I tested the patch, and it works if you replace toolbar.png with the one uploaded under the patch.
Comment #8
mgiffordOops. Hadn't noticed the new .png. I replaced the image file and it now is accessible using a keyboard.
Nobody else should notice a change. It is implemented here if people want to see http://drupal7.dev.openconcept.ca/
Comment #9
mgifford#3: toolbar-togglefocus.patch queued for re-testing.
Comment #10
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #11
deekayen CreditAttribution: deekayen commentedI shaved off some bytes with ImageOptim.
Comment #12
mikey_p CreditAttribution: mikey_p commentedSaves 61 bytes. I double checked the file size using Chrome inspector and the images values using Digital Color Meter on OS X.
Comment #13
Dries CreditAttribution: Dries commentedThanks deekayen. Committed to CVS HEAD.