Refine accessibilityHint (#7554)

* `accessibilityHint`

* accessibilityHint

* Update

Co-Authored-By: jason-me <mail@jason-hester.me>

* Update LoginForm.tsx

---------

Co-authored-by: jason-me <mail@jason-hester.me>
This commit is contained in:
Minseo Lee
2025-02-12 06:07:00 +09:00
committed by GitHub
parent eabe3ed231
commit b1cc4a5e9f
28 changed files with 40 additions and 40 deletions
+1 -1
View File
@@ -232,7 +232,7 @@ export const LoginForm = ({
onSubmitEditing={onPressNext}
blurOnSubmit={false} // HACK: https://github.com/facebook/react-native/issues/21911#issuecomment-558343069 Keyboard blur behavior is now handled in onSubmitEditing
editable={!isProcessing}
accessibilityHint={_(msg`Input your password`)}
accessibilityHint={_(msg`Enter your password`)}
/>
<Button
testID="forgotPasswordButton"
@@ -281,7 +281,7 @@ function ChatListItemReady({
!isDeletedAccount
? _(msg`Go to conversation with ${profile.handle}`)
: _(
msg`This conversation is with a deleted or a deactivated account. Press for options.`,
msg`This conversation is with a deleted or a deactivated account. Press for options`,
)
}
accessibilityActions={
+1 -3
View File
@@ -53,9 +53,7 @@ export function Layout({children}: React.PropsWithChildren<{}>) {
aria-role="dialog"
aria-label={dialogLabel}
accessibilityLabel={dialogLabel}
accessibilityHint={_(
msg`The following steps will help customize your Bluesky experience.`,
)}
accessibilityHint={_(msg`Customizes your Bluesky experience`)}
style={[
// @ts-ignore web only -prf
isWeb ? a.fixed : a.absolute,
+1 -1
View File
@@ -60,7 +60,7 @@ export function ErrorState({error}: {error: string}) {
color="secondary"
variant="solid"
label={_(msg`Go Back`)}
accessibilityHint="Return to previous page"
accessibilityHint="Returns to previous page"
onPress={onPressBack}>
<ButtonText>
<Trans>Go Back</Trans>
+1 -1
View File
@@ -65,7 +65,7 @@ export function AboutSettingsScreen({}: Props) {
</SettingsList.LinkItem>
<SettingsList.PressableItem
label={_(msg`Version ${appVersion}`)}
accessibilityHint={_(msg`Copy build version to clipboard`)}
accessibilityHint={_(msg`Copies build version to clipboard`)}
onPress={() => {
setStringAsync(
`Build version: ${appVersion}; Bundle info: ${bundleInfo}; Bundle date: ${BUNDLE_DATE}; Platform: ${Platform.OS}; Platform version: ${Platform.Version}`,
+1 -1
View File
@@ -124,7 +124,7 @@ export function AccountSettingsScreen({}: Props) {
</SettingsList.PressableItem>
<SettingsList.PressableItem
label={_(msg`Handle`)}
accessibilityHint={_(msg`Open change handle dialog`)}
accessibilityHint={_(msg`Opens change handle dialog`)}
onPress={() => changeHandleControl.open()}>
<SettingsList.ItemIcon icon={AtIcon} />
<SettingsList.ItemText>
@@ -213,7 +213,7 @@ function AppIcon({icon, size = 50}: {icon: AppIconSet; size: number}) {
return (
<PressableScale
accessibilityLabel={icon.name}
accessibilityHint={_(msg`Tap to change app icon`)}
accessibilityHint={_(msg`Changes app icon`)}
targetScale={0.95}
onPress={() => {
if (isAndroid) {
+2 -2
View File
@@ -101,7 +101,7 @@ export function SettingsScreen({}: Props) {
<SettingsList.PressableItem
label={_(msg`Switch account`)}
accessibilityHint={_(
msg`Show other accounts you can switch to`,
msg`Shows other accounts you can switch to`,
)}
onPress={() => {
if (!reducedMotion) {
@@ -205,7 +205,7 @@ export function SettingsScreen({}: Props) {
<SettingsList.PressableItem
onPress={() => Linking.openURL(HELP_DESK_URL)}
label={_(msg`Help`)}
accessibilityHint={_(msg`Open helpdesk in browser`)}>
accessibilityHint={_(msg`Opens helpdesk in browser`)}>
<SettingsList.ItemIcon icon={CircleQuestionIcon} />
<SettingsList.ItemText>
<Trans>Help</Trans>
@@ -537,7 +537,7 @@ function OwnHandlePage({goToServiceHandle}: {goToServiceHandle: () => void}) {
<Button
label={_(msg`Use default provider`)}
accessibilityHint={_(msg`Go back to previous page`)}
accessibilityHint={_(msg`Returns to previous page`)}
onPress={goToServiceHandle}
variant="outline"
color="secondary"
+1 -1
View File
@@ -284,7 +284,7 @@ function WizardInner({
<Layout.Header.Outer>
<Layout.Header.BackButton
label={_(msg`Back`)}
accessibilityHint={_(msg`Go back to the previous step`)}
accessibilityHint={_(msg`Returns to the previous step`)}
onPress={evt => {
if (state.currentStep !== 'Details') {
evt.preventDefault()
+2 -2
View File
@@ -800,7 +800,7 @@ function Overlay({
: _(msg`Follow ${handle}`)
}
accessibilityHint={
profile.viewer?.following ? _(msg`Unfollow user`) : ''
profile.viewer?.following ? _(msg`Unfollows the user`) : ''
}
size="small"
variant="solid"
@@ -930,7 +930,7 @@ function ExpandableRichTextView({
/>
{constrained && !screenReaderEnabled && (
<Pressable
accessibilityHint={_(msg`Tap to expand or collapse post text.`)}
accessibilityHint={_(msg`Expands or collapses post text`)}
accessibilityLabel={expanded ? _(msg`Read less`) : _(msg`Read more`)}
hitSlop={HITSLOP_20}
onPress={() => setExpanded(prev => !prev)}