From 07e487070b38576d7e7a203ef78243be9b0289d3 Mon Sep 17 00:00:00 2001 From: Makoto Morimoto Date: Tue, 20 Oct 2020 11:32:51 -0700 Subject: [PATCH] Command bar role (#15614) #### Pull request checklist - [ ] Addresses an existing issue: Fixes #0000 - [x] Include a change request file using `$ yarn change` #### Description of changes _Cherry-pick of #15511._ _Original PR description:_ Fix having incorrectly set `role="group"` in between `menubar` and `menuitem`. #### Focus areas to test (optional) --- ...react-internal-2020-10-20-10-32-20-commandBarRole.json | 8 ++++++++ .../react/__snapshots__/CommandBar.Basic.Example.tsx.shot | 4 ++-- .../__snapshots__/CommandBar.ButtonAs.Example.tsx.shot | 4 ++-- .../CommandBar.CommandBarButtonAs.Example.tsx.shot | 2 +- .../react/__snapshots__/CommandBar.Lazy.Example.tsx.shot | 2 +- .../CommandBar.SplitDisabled.Example.tsx.shot | 2 +- .../__snapshots__/DetailsList.Advanced.Example.tsx.shot | 4 ++-- .../__snapshots__/Keytips.CommandBar.Example.tsx.shot | 4 ++-- .../src/components/CommandBar/CommandBar.base.tsx | 2 ++ .../__snapshots__/CommandBar.deprecated.test.tsx.snap | 2 +- .../CommandBar/__snapshots__/CommandBar.test.tsx.snap | 4 ++-- 11 files changed, 24 insertions(+), 14 deletions(-) create mode 100644 change/@fluentui-react-internal-2020-10-20-10-32-20-commandBarRole.json diff --git a/change/@fluentui-react-internal-2020-10-20-10-32-20-commandBarRole.json b/change/@fluentui-react-internal-2020-10-20-10-32-20-commandBarRole.json new file mode 100644 index 0000000000000..66ceede18d064 --- /dev/null +++ b/change/@fluentui-react-internal-2020-10-20-10-32-20-commandBarRole.json @@ -0,0 +1,8 @@ +{ + "type": "patch", + "comment": "CommandBar: Fixing incorrect aria role.", + "packageName": "@fluentui/react-internal", + "email": "humbertomakotomorimoto@gmail.com", + "dependentChangeType": "patch", + "date": "2020-10-20T17:32:20.124Z" +} diff --git a/packages/react-examples/src/react/__snapshots__/CommandBar.Basic.Example.tsx.shot b/packages/react-examples/src/react/__snapshots__/CommandBar.Basic.Example.tsx.shot index c24e009c2e919..429153abf132e 100644 --- a/packages/react-examples/src/react/__snapshots__/CommandBar.Basic.Example.tsx.shot +++ b/packages/react-examples/src/react/__snapshots__/CommandBar.Basic.Example.tsx.shot @@ -58,7 +58,7 @@ exports[`Component Examples renders CommandBar.Basic.Example.tsx correctly 1`] = flex-wrap: nowrap; position: relative; } - role="group" + role="none" >
implem > {/*Primary Items*/} implem {/*Secondary Items*/} {data.farItems && data.farItems.length > 0 && (