diff --git a/.changeset/strict-points-return.md b/.changeset/strict-points-return.md new file mode 100644 index 0000000000..15883ee97a --- /dev/null +++ b/.changeset/strict-points-return.md @@ -0,0 +1,7 @@ +--- +"@fluentui-react-native/components": patch +"@fluentui-react-native/desktop-driver": patch +"@fluentui-react-native/framework-base": patch +--- + +Fix native Divider separator semantics, button and popup-trigger accessibility activation, Win32 keyboard press lifecycle and grouped Tab navigation, and standalone ListboxItem accessible names exposed by expanded agentic component tests. macOS Fabric press activation requires the repository's React Native macOS patch. diff --git a/.yarn/patches/react-native-macos-npm-0.81.9-aa583a0648.patch b/.yarn/patches/react-native-macos-npm-0.81.9-aa583a0648.patch index 09efd72969..c317a651c7 100644 --- a/.yarn/patches/react-native-macos-npm-0.81.9-aa583a0648.patch +++ b/.yarn/patches/react-native-macos-npm-0.81.9-aa583a0648.patch @@ -107,7 +107,7 @@ index e7254907271b70783e886d378c7824df46e04e93..fbe1d5d7e834afb4553adb03253e34f6 if (newTextInputProps.multiline && newTextInputProps.traits.dataDetectorTypes != oldTextInputProps.traits.dataDetectorTypes) { diff --git a/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm b/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm -index 6e20d03f64385e3729a7517c6fb8b31f6177d52d..6710864c9e9252556f7fad00caf1bbea2e80192b 100644 +index 6e20d03f64385e3729a7517c6fb8b31f6177d52d..c45606ad4215a21ff7312c1fc35ac27dd56dd51e 100644 --- a/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +++ b/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm @@ -35,6 +35,7 @@ @@ -162,3 +162,32 @@ index 6e20d03f64385e3729a7517c6fb8b31f6177d52d..6710864c9e9252556f7fad00caf1bbea #if !TARGET_OS_OSX // [macOS] // `accessibilityState` if (oldViewProps.accessibilityState != newViewProps.accessibilityState) { +@@ -1661,8 +1687,28 @@ static NSString *RCTRecursiveAccessibilityLabel(RCTUIView *view) // [macOS] + return [customActions copy]; + } + ++#if TARGET_OS_OSX // [macOS ++- (BOOL)isAccessibilitySelectorAllowed:(SEL)selector ++{ ++ if (selector == @selector(accessibilityPerformPress)) { ++ return _props && _eventEmitter && _props->onAccessibilityTap && ++ [self.accessibilityElement isAccessibilityEnabled]; ++ } ++ return [super isAccessibilitySelectorAllowed:selector]; ++} ++#endif // macOS] ++ ++#if !TARGET_OS_OSX // [macOS] + - (BOOL)accessibilityActivate ++#else // [macOS ++- (BOOL)accessibilityPerformPress ++#endif // macOS] + { ++#if TARGET_OS_OSX // [macOS ++ if (![self isAccessibilitySelectorAllowed:_cmd]) { ++ return NO; ++ } ++#endif // macOS] + if (_eventEmitter && _props->onAccessibilityTap) { + _eventEmitter->onAccessibilityTap(); + return YES; diff --git a/packages/agentic/components/src/components/accordion/accordion.stories.tsx b/packages/agentic/components/src/components/accordion/accordion.stories.tsx index 2ec0dcc44d..baba112ddf 100644 --- a/packages/agentic/components/src/components/accordion/accordion.stories.tsx +++ b/packages/agentic/components/src/components/accordion/accordion.stories.tsx @@ -4,9 +4,14 @@ import type { ReactNode } from 'react'; import { StyleSheet, Text, View } from 'react-native'; import type { Meta, StoryObj } from '@storybook/react-native'; +import { desktopIt } from '@fluentui-react-native/storybook-desktop/testing'; +import type { WdioStory } from '@fluentui-react-native/storybook-desktop/testing'; import { Accordion } from './accordion'; import type { AccordionLayout } from './accordion.types'; +import { Input } from '../input/input'; +import { Button } from '../button/button'; +import { StoryStatus } from '../../common/StoryStatus.story-helpers'; type StoryGroupProps = { children: ReactNode; @@ -49,7 +54,88 @@ const meta: Meta = { export default meta; -type Story = StoryObj; +type Story = WdioStory>; + +function KeyboardDisclosureScene() { + const [changes, setChanges] = useState(0); + return ( + + + setChanges((count) => count + 1)} + bodyContent={{ children: