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

fix tooltip callout keyboard focus order for accessibility #2464

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

imatiach-msft
Copy link
Contributor

@imatiach-msft imatiach-msft commented Dec 18, 2023

Description

fix tooltip callout keyboard focus order for accessibility

[Keyboard navigation – Responsible AI Dashboard – Vision Dashboard>Data analysis]: Keyboard focus order is not logical while navigating using tab key after expanding "Data analysis" tooltip.

User Experience:
People who depend on keyboard for navigation will get impacted if focus order is not logical while navigating using tab key as the focus moves out of the page. Due to this, the end user requires more keystrokes to regain the focus in forward navigation.

Repro Steps:
Open ResponsibleAI Dashboard
Navigate to the "Data analysis" section.
Expand the "Data analysis" info button and press tab key.
Observe whether keyboard focus is on logical order or not.
Actual Result:
Keyboard focus order is not logical while navigating using tab key after expanding "Data analysis" tooltip.

Observation:
After expanding the "Data analysis" info button, the screen reader announces as "Dialog - Select a datapoint by clicking on a datapoint (up to 5 datapoints) in the table to view their local feature importance values (local explanation) and individual conditional expectation (ICE) plots", and by pressing tab key, focus moves out of the page.
Expected Result:
Keyboard focus order should be on logical while navigating using tab key after expanding "Data analysis" tooltip.

Example: After expanding the "Data analysis" info button and by pressing tab key, either the keyboard focus should remain on the tooltip, or the focus should land on the next interactive element.

Note: Tab stops is not working.

Video of broken tab order:

TabOrderBroken.mp4

Video of fixed tab order (note now user has to press escape but they won't tab out to the browser window buttons):

TabOrderFixed.mp4

For more info see related fluentui issue on FocusTrapCallout:
microsoft/fluentui#1597

Checklist

  • I have added screenshots above for all UI changes.
  • I have added e2e tests for all UI changes.
  • Documentation was updated if it was needed.

@imatiach-msft imatiach-msft merged commit 09a8e7a into main Dec 18, 2023
60 checks passed
@imatiach-msft imatiach-msft deleted the ilmat/fix-callout-focus-order branch December 18, 2023 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants