Skip to content

Bug - Nav: flyout isn't accessible #7781

@thatblindgeye

Description

@thatblindgeye

Describe the problem
Followup to #7772

Currently the Nav flyout example shows a nav item that both is a link and contains a flyout menu. Due to how some assistive tech navigates pages, the only way to open the flyout menu may be to press Enter or Space on the nav item. The PR linked above would add that functionality in, but because links can be activated via mouse click or pressing Enter, and because VoiceOver's VO modifier + Space keyboard shortcut acts as a click event, the only way for users to open the flyout menu with VO is to press only Space (though that isn't exactly clear depending on the browser and may not be flawless).

As noted in the linked PR, two possible solutions include:

  • We recommend that flyouts not be put on nav items that are also links that can be clicked, and update the flyout example accordingly. This would cause the flyout to behave more similarly to the drilldown example.
  • We update the icon indicating there is a flyout menu to make it an interactive button, similar to the W3C flyout button as toggle example.

Additionally, the difference in how to navigate the first level nav items (can only use Tab to navigate between them) and the flyout menus (can only use arrow keys) may not be immediately apparent to users navigating via only keyboard.

How do you reproduce the problem?
Go to either the example link above or into the preview build nav flyout from the linked PR, and try to navigate and operate the flyout nav example with VO.

Expected behavior
Nav flyouts can be clearly perceived and operated by assistive tech

Is this issue blocking you?
N/A

Screenshots
N/A

What is your environment?
N/A

What is your product and what release date are you targeting?
N/A

Any other information?
N/A

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions