eg-help-popover accessibility issues

Bug #1801947 reported by Galen Charlton
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned
3.1
Won't Fix
Medium
Unassigned
3.2
Won't Fix
Undecided
Unassigned
3.3
Won't Fix
Undecided
Unassigned
3.4
Fix Released
Medium
Unassigned

Bug Description

As currently implemented, the eg-help-popover AngularJS directive has a significant accessibility issue: it cannot be invoked via keyboard action as there's no way of giving it focus.

Changing to <span> to a <button> (and presumably with styling to make it not look significantly different) and possibly setting tabindex to 0 should improve it.

Evergreen 3.1+

Galen Charlton (gmc)
tags: added: accessibility
Changed in evergreen:
importance: Undecided → Medium
milestone: none → 3.2.2
Changed in evergreen:
milestone: 3.2.2 → 3.2.3
Changed in evergreen:
milestone: 3.2.3 → 3.3-beta1
Revision history for this message
Jane Sandberg (sandbergja) wrote :

Good catch, Galen. Just a note for anybody who works on this: I am +1 to changing the styling a bit so that the look of the eg-help-popover remains consistent. However, when the eg-help-popover receives focus, it should still have some type of border to indicate that it has focus.

Changed in evergreen:
milestone: 3.3-beta1 → 3.3-rc
Changed in evergreen:
milestone: 3.3-rc → 3.3.1
Changed in evergreen:
milestone: 3.3.1 → 3.3.2
Changed in evergreen:
milestone: 3.3.2 → 3.3.3
Changed in evergreen:
milestone: 3.3.3 → 3.3.4
Changed in evergreen:
milestone: 3.3.4 → 3.3.5
Changed in evergreen:
milestone: 3.3.5 → none
Changed in evergreen:
status: New → Confirmed
Revision history for this message
Mike Risher (mrisher) wrote :

I pushed a branch with this change:

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/mrisher/lp1801947-eg-help-popover-accessibility

I didn't add any border as I'm seeing the element with focus automatically highlighted using Chrome.

tags: added: pullrequest
Galen Charlton (gmc)
Changed in evergreen:
milestone: none → 3.6-beta
milestone: 3.6-beta → 3.5.1
Changed in evergreen:
milestone: 3.5.1 → 3.5.2
Revision history for this message
Terran McCanna (tmccanna) wrote :

The functionality works well - I can use keyboard controls to tab to it and turn it off and on. The styling looks like a button (see attached) so could be improved, but I'm happy to sign off due to the accessibility improvement:

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/mccanna/lp1801947-eg-help-popover-accessibility-signoff

tags: added: signedoff
Revision history for this message
Terran McCanna (tmccanna) wrote :
Changed in evergreen:
assignee: nobody → Jane Sandberg (sandbej)
Changed in evergreen:
assignee: Jane Sandberg (sandbej) → nobody
status: Confirmed → Fix Committed
Revision history for this message
Jane Sandberg (sandbergja) wrote :

Thanks, Mike and Terran! This is a good improvement. I added it to master, rel_3_5, and rel_3_4.

I also threw in a follow-up commit that adds type="button" to the <button> tags. This helps when the <eg-help-popover> is used in a form (e.g. the New Bucket forms). Without type="button", it will default to a Submit button, so rather than giving users any help, it just unexpectedly submits the form (see https://www.w3.org/TR/2011/WD-html5-20110525/the-button-element.html#attr-button-type).

Revision history for this message
Terran McCanna (tmccanna) wrote :

Good catch, Jane!

Revision history for this message
Mike Risher (mrisher) wrote :

Thank you for adding that adjustment, Jane!

Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.