diff --git a/change/@fluentui-react-tag-picker-64fc2595-4402-4433-89ba-6fa4382c8d08.json b/change/@fluentui-react-tag-picker-64fc2595-4402-4433-89ba-6fa4382c8d08.json new file mode 100644 index 00000000000000..6458d4dd9b7946 --- /dev/null +++ b/change/@fluentui-react-tag-picker-64fc2595-4402-4433-89ba-6fa4382c8d08.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: modify roles for toolbar + buttons instead of listbox + options", + "packageName": "@fluentui/react-tag-picker", + "email": "bernardo.sunderhus@gmail.com", + "dependentChangeType": "patch" +} diff --git a/packages/react-components/react-tag-picker/library/src/components/TagPickerGroup/useTagPickerGroup.ts b/packages/react-components/react-tag-picker/library/src/components/TagPickerGroup/useTagPickerGroup.ts index c2cd563fc5b413..5223099c977c57 100644 --- a/packages/react-components/react-tag-picker/library/src/components/TagPickerGroup/useTagPickerGroup.ts +++ b/packages/react-components/react-tag-picker/library/src/components/TagPickerGroup/useTagPickerGroup.ts @@ -37,7 +37,6 @@ export const useTagPickerGroup_unstable = ( const state = useTagGroup_unstable( { - role: 'listbox', disabled, ...props, ...arrowNavigationProps, diff --git a/packages/react-components/react-tag-picker/stories/src/TagPicker/TagPickerAppearance.stories.tsx b/packages/react-components/react-tag-picker/stories/src/TagPicker/TagPickerAppearance.stories.tsx index 3514ea4b85e477..45dcb28019e392 100644 --- a/packages/react-components/react-tag-picker/stories/src/TagPicker/TagPickerAppearance.stories.tsx +++ b/packages/react-components/react-tag-picker/stories/src/TagPicker/TagPickerAppearance.stories.tsx @@ -42,7 +42,7 @@ const Example = ({ appearance }: Pick) => { - + {selectedOptions.map(option => ( { - + {selectedOptions.map(option => ( { - + {selectedOptions.map(option => ( { - + {selectedOptions.map(option => ( { }> - + {selectedOptions.map(option => ( { - + {selectedOptions.map(option => ( { - + {selectedOptions.map(option => ( { - + {selectedOptions.map((option, index) => ( { } > - + {selectedOptions.map(option => ( { {selectedOption && ( - + ) => { - + {selectedOptions.map(option => ( { option.value)}> - + {selectedOptions.map(option => (