From a6d214e6d111fcc860e08caf3329620c698922fa Mon Sep 17 00:00:00 2001 From: Kevin Coughlin Date: Sun, 7 Oct 2018 21:28:46 -0700 Subject: [PATCH] Fix a11y violations reported in ContextualMenu examples (#6574) * Fix #6360 #12 - Unique IDs for CtxMenu demo page examples. * Fix #6360 #2: Add label for hover delay TextField example * Fix #6360 #1: Add aria-label to search input on filter CtxMenu example * Add changefiles * Update ContextualMenu snapshots --- ...o-ctx-menu-demo-a11y_2018-10-04-22-47.json | 11 +++++++++ ...o-ctx-menu-demo-a11y_2018-10-04-22-47.json | 11 +++++++++ .../FluentStyles.ContextualMenu.Example.tsx | 2 +- .../examples/ContextualMenu.Basic.Example.tsx | 2 +- .../ContextualMenu.CustomMenuItem.Example.tsx | 2 +- .../ContextualMenu.CustomMenuList.Example.tsx | 8 +++---- .../ContextualMenu.Header.Example.tsx | 2 +- .../ContextualMenu.ScrollBar.Example.tsx | 2 +- .../ContextualMenu.Section.Example.tsx | 2 +- .../ContextualMenu.Submenu.Example.tsx | 2 +- .../ContextualMenu.Basic.Example.tsx.shot | 2 +- ...extualMenu.CustomMenuItem.Example.tsx.shot | 2 +- ...extualMenu.CustomMenuList.Example.tsx.shot | 2 +- .../ContextualMenu.Header.Example.tsx.shot | 2 +- .../ContextualMenu.ScrollBar.Example.tsx.shot | 2 +- .../ContextualMenu.Section.Example.tsx.shot | 2 +- .../ContextualMenu.Submenu.Example.tsx.shot | 23 +++++++++++++++++++ 17 files changed, 61 insertions(+), 18 deletions(-) create mode 100644 common/changes/@uifabric/experiments/keco-ctx-menu-demo-a11y_2018-10-04-22-47.json create mode 100644 common/changes/office-ui-fabric-react/keco-ctx-menu-demo-a11y_2018-10-04-22-47.json diff --git a/common/changes/@uifabric/experiments/keco-ctx-menu-demo-a11y_2018-10-04-22-47.json b/common/changes/@uifabric/experiments/keco-ctx-menu-demo-a11y_2018-10-04-22-47.json new file mode 100644 index 0000000000000..4649712930b55 --- /dev/null +++ b/common/changes/@uifabric/experiments/keco-ctx-menu-demo-a11y_2018-10-04-22-47.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "packageName": "@uifabric/experiments", + "comment": "Fix a11y violations in Fluent ContextualMenu examples", + "type": "patch" + } + ], + "packageName": "@uifabric/experiments", + "email": "keco@microsoft.com" +} \ No newline at end of file diff --git a/common/changes/office-ui-fabric-react/keco-ctx-menu-demo-a11y_2018-10-04-22-47.json b/common/changes/office-ui-fabric-react/keco-ctx-menu-demo-a11y_2018-10-04-22-47.json new file mode 100644 index 0000000000000..63946f9791c88 --- /dev/null +++ b/common/changes/office-ui-fabric-react/keco-ctx-menu-demo-a11y_2018-10-04-22-47.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "packageName": "office-ui-fabric-react", + "comment": "Fix a11y violations in ContextualMenu examples", + "type": "patch" + } + ], + "packageName": "office-ui-fabric-react", + "email": "keco@microsoft.com" +} \ No newline at end of file diff --git a/packages/experiments/src/components/fluent/styles/examples/FluentStyles.ContextualMenu.Example.tsx b/packages/experiments/src/components/fluent/styles/examples/FluentStyles.ContextualMenu.Example.tsx index 282d078fc2e88..4e6cc2b8e0e2f 100644 --- a/packages/experiments/src/components/fluent/styles/examples/FluentStyles.ContextualMenu.Example.tsx +++ b/packages/experiments/src/components/fluent/styles/examples/FluentStyles.ContextualMenu.Example.tsx @@ -10,7 +10,7 @@ export class FluentStylesContextualMenuExample extends React.Component<{}, {}> { return (
- ) { + private _renderMenuList(menuListProps: IContextualMenuListProps, defaultRender: IRenderFunction) { return (
{ public render(): JSX.Element { return ( { return (
- + +