diff --git a/packages/legacy/core/App/components/buttons/Button-api.tsx b/packages/legacy/core/App/components/buttons/Button-api.tsx index e6d68a8e7..e7dba04a2 100644 --- a/packages/legacy/core/App/components/buttons/Button-api.tsx +++ b/packages/legacy/core/App/components/buttons/Button-api.tsx @@ -13,6 +13,7 @@ export interface ButtonProps extends React.PropsWithChildren { title: string buttonType: ButtonType accessibilityLabel?: string + accessibilityHint?: string testID?: string onPress?: () => void disabled?: boolean diff --git a/packages/legacy/core/App/components/buttons/Button.tsx b/packages/legacy/core/App/components/buttons/Button.tsx index f49e4adba..c460c8865 100644 --- a/packages/legacy/core/App/components/buttons/Button.tsx +++ b/packages/legacy/core/App/components/buttons/Button.tsx @@ -6,7 +6,7 @@ import { useTheme } from '../../contexts/theme' import { Button, ButtonType, ButtonProps } from './Button-api' const ButtonImplComponent = ( - { title, buttonType, accessibilityLabel, testID, onPress, disabled = false, children }: ButtonProps, + { title, buttonType, accessibilityLabel, accessibilityHint, testID, onPress, disabled = false, children }: ButtonProps, ref: React.LegacyRef ) => { const { Buttons, heavyOpacity } = useTheme() @@ -25,6 +25,7 @@ const ButtonImplComponent = ( onPress={onPress} accessible accessibilityLabel={accessibilityLabel} + accessibilityHint={accessibilityHint} accessibilityRole={'button'} onPressIn={() => setIsActive(!disabled && true)} onPressOut={() => setIsActive(false)}