Skip to content
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

Report: Table option #45

Open
zwiastunsw opened this issue Jul 21, 2018 · 10 comments
Open

Report: Table option #45

zwiastunsw opened this issue Jul 21, 2018 · 10 comments

Comments

@zwiastunsw
Copy link
Contributor

zwiastunsw commented Jul 21, 2018

Review process

  • Scope of review
    • name of UI elements: Table option
    • date of review: 21/07/2018
  • Reviewers: Stefan Wajda
  • Evaluation environment:
    • Windows 10,
    • Chrome 67.0.3396.99
    • Methods and tools
      • Tools: aXe, Lighthouse, NVDA
      • Methods: code inspection, testing keyboard only, testing with screen reader

Result and recommended action

Summary of results

The sorting and filtering functions provided by the tool are accessible. However, a few of problems have been identified that may result in inaccessibility.

Strengths

All sorting and filtering options are accessible from the keyboard..

Failures and recommendations

1. The ‘select’ elements do not have corresponding labels

The select lists do not have correspondingly associated labels. The function or purpose of the lists can not be presented to screen reader users. Some users may also have problems understanding the purposes of the lists. The functions of some lists can be deduced by users from the name of the first option ('Select Category', 'Select Status', 'Select Access', etc.). But in a few cases there is no such value describing the purpose of the list: (1) a list limiting the number of items per page, (2) a list ‘Select location’ on pages: “Modules manage” “Language installed”, “Templates: Styles”.

2. Select must not change context

When a keyboard-only user uses the Escape key on an option that has a focus, the page is automatically reloaded. Similarly, when the screen reader user changes a selected option in the list is collapsed using the arrow keys, the page is automatically reloaded.

Select elements with onchange event handler must not automatically change the user's context when keyboard focus moves between options.

User's can become disoriented if the focus changes cause unpredictable actions.

When the user is using the keyboard to explore select box options, the focus must stay on the options, until the user selects one of the options.

See: FAE - select must not change context

  • Recommendation: Do not use onchange event handlers on select elements. Use selections should be made using the enter key.
  • Success Criteria:

3. No labels in multiple-select lists

Multiple-select lists are used on the Article manager page. The user does not see the description of these lists as they are expanded. Screen reader users hear neither list description nor list option names.

Appendix: Keyboard interaction

  • Tab / Shift+Tab:
    • moves focus from the previous/next interactive element to a button when it is collapsed (all list are collapsed)
    • when the lists are expanded, moves focus between the lists
  • Enter:
    • when the focus is on a collapsed button, expand the lists
    • when the focus is on a collapsed list, expand the list
      Note: If none of the options are selected before the listbox receives focus, the first option receives focus. Otherwise, the currently selected option in the list receives focus.
      when the focus is on the selected option, activate this option
  • Space:
    • when the focus is on a collapsed button, expand the lists
    • when the focus is on a collapsed list, expand the list
  • Arrow Up / Arrow Down: moves focus to the previous/next option
  • Home / End: moves focus to the firs/last option
  • Type a character: moves focus to the next/previous option with a name that starts with the typed character.
  • Quickly type multiple characters: moves focus to the next/previous option with a name that starts with the string of characters typed
  • Backspace: remove an option from the multiple-choice list
  • Escape: collapses the listbox without selecting the currently focused option
@dgrammatiko
Copy link

The multiple selection is base on chosen. This is an abandoned script and we should find a replacement.

@brianteeman
Copy link

my personal favourite for the replacement is https://github.com/alphagov/accessible-autocomplete

it is well tested and maintained and very flexible

See examples here https://alphagov.github.io/accessible-autocomplete/

@dgrammatiko
Copy link

I thought I already implemented this for review here: joomla/joomla-cms#19671

FWIW I not fan of adding also react to joomla

@brianteeman
Copy link

why would you want/need to add react

@dgrammatiko
Copy link

It's included by the script...

@brianteeman
Copy link

i must be missing something then

@zwiastunsw zwiastunsw changed the title Review of Table option Report: Table option Jul 22, 2018
@brianteeman
Copy link

Please test joomla/joomla-cms#22008

This addresses

  1. The ‘select’ elements do not have corresponding labels

@brianteeman
Copy link

And partially fixes

  1. No labels in multiple-select lists

There are labels now just not the option names

@brianteeman
Copy link

Please test this promptly as it is a lot of work to make the changes everywhere and I would like to do it sooner rather than later

@zwiastunsw
Copy link
Contributor Author

The problem is partially solved by @brianteeman.
The PR was successfully tested, but we did not carry out any verification tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants