Enterprise: Header: Unable to focus elements without mouse

Created on 24 Sep 2020  路  5Comments  路  Source: infor-design/enterprise

Describe the bug
Elements in the header component do not receive focus when pressing the tab key (or arrow keys). For accessibility purposes, these elements should be able to be focused/selected without using a mouse.

To Reproduce
Steps to reproduce the behavior:

  1. View a header component that contains elements (example: http://localhost:4000/components/header/example-flex-toolbar.html)
  2. Upon loading, press the tab key numerous times.
  3. Observe that none of the elements in the header become focused.
  1. Additional: Click on a header element (e.g. search input, Settings, Delete, Filter, etc.).
  2. Press the tab key numerous times.
  3. Observe that the clicked element retains focus, and the other elements are still not focusable.

Expected behavior
For accessibility purposes, clickable elements should be focusable via keyboard, typically using the tab button.

Version

  • ids-enterprise: v4.28.0

Screenshots
N/A

Platform

  • Infor Application/Team Name: LSF
  • Device: Laptop
  • OS Version: Windows 10
  • Browser Name: Chrome
  • Browser Version: 85.0.4183.83 (Official Build) (32-bit)

Additional context
When a header element is clicked, the 'tabindex' attribute of all other elements gets set to '-1'.

[1] accessibility type

All 5 comments

Looks like the tabindex is incorrectly -1 on initial load. However if i fix that it will work. Note that the way it should work is

  • tab to toolbar
  • use left and right arrow across toolbar
  • tab/shift tab out toolbar

https://www.w3.org/TR/wai-aria-practices-1.1/#keyboard-interaction-20

So there is a bug here

QA Passed with observation
v4.34.0-dev
https://master-enterprise.demo.design.infor.com/components/header/example-flex-toolbar.html
image

_Observation_
this ain't working

  1. Additional: Click on a header element (e.g. search input, Settings, Delete, Filter, etc.).
  2. Press the tab key numerous times.
  3. Observe that the clicked element retains focus, and the other elements are still not focusable.

Hey @tmcconechy, is this one still broken then? Did it pass QA? We're not seeing it working still.

Here's another good place to look at it: https://master-enterprise.demo.design.infor.com/components/tabs-module/example-category-searchfield-go-button-home.html

https://master-enterprise.demo.design.infor.com/components/header/example-flex-toolbar.html is working. Keep in mind the input causes issues with left and right arrow so we use up and down arrow to navigate left and right. So this one seems ok if you try up/down for the input and left/right

https://master-enterprise.demo.design.infor.com/components/tabs-module/example-category-searchfield-go-button-home.html with the extra button wasnt in scope of this issue so it wasnt fixed, i guess the extra buttons are the problem

But we have it raised here https://github.com/infor-design/enterprise/issues/4683

Ah, got it, wasn't aware of the up/down keys. I see that working now. So yeah, with #4683 being fixed, the whole thing should work. Thanks!

Was this page helpful?
0 / 5 - 0 ratings