diff --git a/react-native-harmony/Libraries/Components/Button/Button.harmony.js b/react-native-harmony/Libraries/Components/Button/Button.harmony.js index 2e990a9cd126e14e8b4cf52e5c397325b931ad42..497ac60ad22d80e49d41a27fa0794e09b218deab 100644 --- a/react-native-harmony/Libraries/Components/Button/Button.harmony.js +++ b/react-native-harmony/Libraries/Components/Button/Button.harmony.js @@ -381,7 +381,7 @@ class Button extends React.Component { onPress={onPress} touchSoundDisabled={touchSoundDisabled}> - + {formattedTitle} diff --git a/react-native-harmony/package.json b/react-native-harmony/package.json index 101009706b7752d56f9340e4d68cb00770fe5a08..a558c141d2adabf1e151fa0f60559c0d3a09bbcf 100644 --- a/react-native-harmony/package.json +++ b/react-native-harmony/package.json @@ -1,6 +1,6 @@ { "name": "@rnoh/react-native-harmony", - "version": "0.72.54", + "version": "0.72.55", "description": "", "scripts": { "install:local-cli": "cd ../react-native-harmony-cli && npm pack && cd ../react-native-harmony && npm i ../react-native-harmony-cli/rnoh-react-native-harmony-cli-0.0.25.tgz && cd ../react-native-harmony", diff --git a/tester/harmony/react_native_openharmony/src/main/cpp/RNOHCorePackage/ComponentInstances/TextComponentInstance.cpp b/tester/harmony/react_native_openharmony/src/main/cpp/RNOHCorePackage/ComponentInstances/TextComponentInstance.cpp index 54acb045951fbab117073356080c16ae171c0f60..27d1c9a6404277372794e9a39dd5d78b248a562b 100644 --- a/tester/harmony/react_native_openharmony/src/main/cpp/RNOHCorePackage/ComponentInstances/TextComponentInstance.cpp +++ b/tester/harmony/react_native_openharmony/src/main/cpp/RNOHCorePackage/ComponentInstances/TextComponentInstance.cpp @@ -87,7 +87,7 @@ void TextComponentInstance::onPropsChanged( m_textNode.setTextCopyOption(testCopyOption); // Because the default text text in harmony is not focused without barrier, the default value is yes. - if (static_cast(textProps->importantForAccessibility) == 0) { + if (static_cast(textProps->importantForAccessibility) == 0 && textProps->nativeId != "inButton") { facebook::react::ImportantForAccessibility accessibilityValue = facebook::react::ImportantForAccessibility::Yes; this->getLocalRootArkUINode().setAccessibilityLevel(accessibilityValue); }