Closed Bug 1578494 Opened 5 years ago Closed 5 years ago

Iron out keyboard audit rules.

Categories

(DevTools :: Accessibility Tools, defect, P1)

defect

Tracking

(firefox70 fixed, firefox71 affected)

RESOLVED FIXED
Tracking Status
firefox70 --- fixed
firefox71 --- affected

People

(Reporter: yzen, Assigned: yzen)

Details

Attachments

(6 files)

47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review

There are a couple of false positives that need to be taken care while the keyboard checks are still in beta. This is a bug that collects them all:

  • remove combobox option from keyboard interactive list since it's does not need to be focusable
  • PARENT_MENUITEM should be in interactive list

"Clickable elements must be focusable and should have interactive semantics" seems to happen for text leafs inside anchors because they have "jump" action

add a check if it's a text leaf - bail
remove showlongdesc action from list
check if count is > 0

Pushed by yura.zenevich@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/449f9cdc5737
when checking for mouse only interactivity, add additional checks for text leafs and showlongdesc actions. r=nchevobbe

Valid label accessibles that have a proper relationship with another accessible also have a click action that puts focus on the related element. This needs to be taken into account.

Attachment #9091491 - Attachment description: Bug 1578494 - separate that are expected to be interactive from keyboard accessible roles, better account for ARIA comboboxes and listboxes. r=nchevobbe → Bug 1578494 - separate accessible roles into the ones that are expected to be interactive from keyboard accessible ones, better account for ARIA comboboxes and listboxes. r=nchevobbe
Pushed by yura.zenevich@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/4db4134ce37f
include ROLE_PARENT_MENUITEM (currently selected/visible menu item) into a set of interactive roles. r=nchevobbe
https://hg.mozilla.org/integration/autoland/rev/1c1cce6858bf
separate accessible roles into the ones that are expected to be interactive from keyboard accessible ones, better account for ARIA comboboxes and listboxes. r=nchevobbe
https://hg.mozilla.org/integration/autoland/rev/f27848276c11
ignore valid labels with "label for" relations as they are clickable. r=nchevobbe
https://hg.mozilla.org/integration/autoland/rev/a938a9681091
ignore images inside anchors for semantic check as they get a propagated jump action. r=nchevobbe
https://hg.mozilla.org/integration/autoland/rev/10e7e29e4357
make MOUSE_INTERACTIVE_ONLY failure check less strict and only look at click action. r=nchevobbe

Comment on attachment 9091494 [details]
Bug 1578494 - make MOUSE_INTERACTIVE_ONLY failure check less strict and only look at click action. r=nchevobbe

Beta/Release Uplift Approval Request

  • User impact if declined: Developers auditing websites for keyboard accessibility will have too many false positives.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Low risk as its covered by tests, small changes to keyboard accessibility audit rules.
  • String changes made/needed: None
Attachment #9091494 - Flags: approval-mozilla-beta?
Attachment #9090775 - Flags: approval-mozilla-beta?
Attachment #9091490 - Flags: approval-mozilla-beta?
Attachment #9091491 - Flags: approval-mozilla-beta?
Attachment #9091492 - Flags: approval-mozilla-beta?
Attachment #9091493 - Flags: approval-mozilla-beta?
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED

Comment on attachment 9090775 [details]
Bug 1578494 - when checking for mouse only interactivity, add additional checks for text leafs and showlongdesc actions. r=nchevobbe

Better support for a11y checks. OK for beta uplift.

Attachment #9090775 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9091490 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9091491 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9091492 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9091493 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9091494 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Merge conflict when trying to uplift to beta:

grafting 565235:1c1cce6858bf "Bug 1578494 - separate accessible roles into the ones that are expected to be interactive from keyboard accessible ones, better account for ARIA comboboxes and listboxes. r=nchevobbe"
merging devtools/server/actors/accessibility/audit/keyboard.js
merging devtools/server/tests/browser/browser_accessibility_keyboard_audit.js
merging devtools/server/tests/browser/doc_accessibility_keyboard_audit.html
warning: conflicts while merging devtools/server/tests/browser/browser_accessibility_keyboard_audit.js! (edit, then use 'hg resolve --mark')
warning: conflicts while merging devtools/server/tests/browser/doc_accessibility_keyboard_audit.html! (edit, then use 'hg resolve --mark')
abort: unresolved conflicts, can't continue

Edit: Nevermind it worked.

Flags: needinfo?(yzenevich)
Flags: needinfo?(yzenevich)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: