Skip to content

Commit 4f4986b

Browse files
committed
added accessibility to icon button
1 parent 70eb746 commit 4f4986b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/fluent-tester/src/TestComponents/ContextualMenu/ContextualMenuTest.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,9 @@ const IconContextualMenu: React.FunctionComponent = () => {
295295
style={{ borderWidth: 0 }}
296296
icon={{ svgSource: svgProps, width: 12, height: 12 }}
297297
onClick={toggleShowContextualMenu}
298+
accessibilityLabel="Icon"
299+
accessibilityRole="button"
300+
accessibilityState={{ expanded: isContextualMenuVisible }}
298301
/>
299302
</View>
300303
</View>

0 commit comments

Comments
 (0)