Skip to content

ContextualMenu: Document onRender accessibility requirement#1560

Merged
micahgodbolt merged 1 commit intomicrosoft:masterfrom
c-w:patch-1
Apr 20, 2017
Merged

ContextualMenu: Document onRender accessibility requirement#1560
micahgodbolt merged 1 commit intomicrosoft:masterfrom
c-w:patch-1

Conversation

@c-w
Copy link
Copy Markdown
Contributor

@c-w c-w commented Apr 19, 2017

Pull request checklist

  • Addresses an existing issue: #0000
  • Include a change request file if publishing
  • New feature, bugfix, or enhancement
    • Includes tests
  • Documentation update

Description of changes

For keyboard accessibility, all custom-rendered context menus entries need to be focusable so that the FocusZone can set the appropriate tabIndex while navigating through the menu.

Previously, this requirement was not documented which made it very easy to inadvertently create non-accessible context menus. For example, the "ContextualMenu customization example" is currently not keyboard-accessible.

Hopefully this documentation update will make it easier for users to create accessible custom-rendered context menus.

For keyboard accessibility, all custom-rendered context menus entries need to be
focusable so that the FocusZone can set the appropriate tabIndex while
navigating through the menu.

Previously, this requirement was not documented which made it very easy to
inadvertently create non-accessible context menus. For example, the
"ContextualMenu customization example" on
https://dev.office.com/fabric#/components/contextualmenu is currently not
keyboard-accessible.
@micahgodbolt micahgodbolt merged commit 3a32b3c into microsoft:master Apr 20, 2017
@c-w c-w deleted the patch-1 branch April 20, 2017 16:32
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants