You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[EuiPageHeader] The focus order of rightSideItems does not correspond to the logical processing sequence #6693
After opening the page “Saved Objects”, the focus is set on the button “Export 6 objects”, and not on “Refresh”, so that keyboard users must navigate from right to left, which is not the expected sequence.
Expected Result
The focus order should correspond to the logical and visual processing order.
The buttons should be efficiently accessible via shortcut.
Meta Issue
n.a.
Kibana Version:
8.3 OS:
Microsoft Windows 10 Enterprise (64-bit) Browser:
Google Chrome 109.0.5414.75 (64-Bit)
changed the title [-](Accessibility) The focus order does not correspond to the logical processing sequence - example 1[/-][+][EuiPageHeader] The focus order of `rightSideItems` does not correspond to the logical processing sequence[/+]on Apr 5, 2023
After reviewing, I don't think this is a bug. EuiPageHeaderintentionally sets the content of the header to have a flex-direction of row-reverse. This is why the last element in the header is selected on focus first. The component has the rightSideGroupProps prop that can be used to change the direction of these elements to use row instead of row-reverse.
In terms of accessibility, @1Copenut do you mind throwing in your 2 cents? I'm inclined to say it's not an issue and if the team wanted to update the direction of the elements, they have the ability to. I don't think this requires any changes in EUI.
This is an accessibility issue, not a "bug" per se, but it is definitely an issue and the default needs to be changed. Just because consumers can override it via props doesn't mean they will, and the role of EUI is to set good accessibility defaults and best practices.
Instead of using flex-direction we should clone and reverse the array so that DOM rendering follows the tab order.
I +1 to @cee-chen comment here. I was reading through Technique C27: Making the DOM order match the visual order to double-check. Visually English is top to bottom and left to right, so moving out of the left navigation users have a reasonable expectation the Refresh button would receive focus first (in the original highlighted example).
Activity
elasticmachine commentedon Apr 5, 2023
Pinging @elastic/kibana-accessibility (Project:Accessibility)
elasticmachine commentedon Apr 5, 2023
cee-chen commentedon Apr 5, 2023
Transferring to the EUI repo - this needs to be addressed at the
EuiPageHeaderlevel.[-](Accessibility) The focus order does not correspond to the logical processing sequence - example 1[/-][+][EuiPageHeader] The focus order of `rightSideItems` does not correspond to the logical processing sequence[/+]breehall commentedon Apr 27, 2023
After reviewing, I don't think this is a bug.
EuiPageHeaderintentionally sets the content of the header to have aflex-directionofrow-reverse. This is why the last element in the header is selected on focus first. The component has therightSideGroupPropsprop that can be used to change the direction of these elements to userowinstead ofrow-reverse.In terms of accessibility, @1Copenut do you mind throwing in your 2 cents? I'm inclined to say it's not an issue and if the team wanted to update the direction of the elements, they have the ability to. I don't think this requires any changes in EUI.
cee-chen commentedon Apr 27, 2023
This is an accessibility issue, not a "bug" per se, but it is definitely an issue and the default needs to be changed. Just because consumers can override it via props doesn't mean they will, and the role of EUI is to set good accessibility defaults and best practices.
Instead of using
flex-directionwe should clone and reverse the array so that DOM rendering follows the tab order.1Copenut commentedon Apr 27, 2023
I +1 to @cee-chen comment here. I was reading through Technique C27: Making the DOM order match the visual order to double-check. Visually English is top to bottom and left to right, so moving out of the left navigation users have a reasonable expectation the
Refreshbutton would receive focus first (in the original highlighted example).breehall commentedon Apr 27, 2023
Thank you both for the explanations here! I'll move forward with this info.