Skip to content

fix: [Accessibility][Tracking] Add/Update accessibilityLabel - #80496

Merged
inimaga merged 22 commits into
Expensify:mainfrom
Uzaifm127:fix/79233-Add/Update-accessibility-labels
Feb 13, 2026
Merged

inimaga merged 22 commits into
Expensify:mainfrom
Uzaifm127:fix/79233-Add/Update-accessibility-labels

Conversation

@Uzaifm127

@Uzaifm127 Uzaifm127 commented Jan 26, 2026

Copy link
Copy Markdown
Contributor

Explanation of Change

  1. Updated accessbilityLabel for chat messages to include sender name, time sent and message text.
  2. Updated accessbilityLabel for status button in profile to include Status, Emoji not selected when no status is there.
  3. Updated accessbilityLabel for switch buttons in Distance rates.
  4. Updated accessbilityLabel for step buttons.
  5. Added accessbilityLabel to Language picker in Sign in screen.
  6. Added accessbilityLabel to social icons in sign in screen.
  7. Updated accessbilityLabel of amount input to include the amount on Android/iOS. - (Didn't include tests for this)
  8. Updated accessbilityLabel for Checkbox and Add to group button in the participant page.

Fixed Issues

$ #77454
$ #77412
$ #77365
$ #76906
$ #76905
$ #74855
$ #74853
$ #79233
PROPOSAL: #79233 (comment)

Tests

Test 1: Checkbox and Add to group button announcement on group chat - #77454

  1. Using VoiceOver on iOS or TalkBack on Android, open the app.
  2. Swipe right to focus the Create tab and double-tap to activate it.
  3. Swipe right to focus the Start chat button and double-tap to activate it.
  4. Swipe right to focus on Add to group button.
  5. Verify that the Add to group button is announced as Add [username] to group.
  6. Add the participant by double tapping to activate the Add to group button.
  7. Swipe left to focus on the Checkbox.
  8. Verify that the Checkbox is announced as [username] selected.

Test 2: All chat messages are announced as 'chat message' - #77412

  1. Using VoiceOver on iOS or TalkBack on Android, open the app.
  2. Swipe right to focus any chat and double-tap to activate it.
  3. Swipe right to focus any message in the chat.
  4. Verify that the chat message announcement includes sender's name, time sent and message text.

Test 3: Status button in profile page announcement - #77365

Precondition: You must not have any status selected in the profile page.

  1. Using Android TalkBack or iOS VoiceOver, open the Expensify app.
  2. Swipe to the 'Account' button at the bottom right corner of the screen and double-tap to activate.
  3. Swipe to the 'Status' button at the top right corner of the screen.
  4. Verify that the Status button is announced as 'Status, emoji not selected'.

Test 4: Switch button in Distance rates - #76906

  1. Using JAWS on windows chrome or VoiceOver on mac, open the expensify website.
  2. Tab to focus on the required workspace and press Enter to activate it.
  3. Once the Workspace menu is displayed, tab to focus on the "Distance Rates" menu item and press Enter to activate it.
  4. Tab to focus on the toggle switch of "Default Rate".
  5. Verify that the corresponding switch is announced as Default Rate, [currency][amount] / mile, on, switch.

Test 5: Social links announcement on landing page - #74853

  1. Using JAWS on windows chrome or VoiceOver on mac, open the expensify website.
  2. Navigate using TAB key to the social media links in the footer, located under 'Learn More'.
  3. Verify that each social media link is announced with it's role and unique name, for example:
  • "link, image, Twitter"
  • "link, image, Instagram"
  • "link, image, Facebook"
  • "link, image, Linkedin"

Test 6: The combobox of Language has no programmatic name - #74855

  1. Using JAWS on windows chrome or VoiceOver on mac, open the expensify website.
  2. Press Tab key to navigate to the language combo box, located in the footer under 'Get Started'.
  3. Verify that the language combobox is announced as "Languag, Combo box, English".

Test 7: Step buttons isn't being announced correctly - #76905

Precondition: You must not have any Expensify card issued before.

  1. Using JAWS on windows chrome or VoiceOver on mac, open the expensify website.
  2. Tab to focus the Workspaces tab and press enter to activate.
  3. Select any workspace and press enter to activate.
  4. Tab to the 'Expensify Card' button and press enter to activate.
  5. Tab to the 'Issue New Card' button and press enter to activate.
  6. Navigate to the 'Connect Manually' or the 'Log into your bank' button and press enter to activate.
  7. focus on the steps.
  8. Verify that the entire step box or container is focusable as a whole.
  9. Verify that the entire step box is announced as "Step 1 of 6", "Step 2 of 6" based on the current step.
  • Verify that no errors appear in the JS console

Offline tests

Same as Test

QA Steps

Same as Test

// TODO: These must be filled out, or the issue title must include "[No QA]."

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I verified there are no new alerts related to the canBeMissing param for useOnyx
  • I followed proper code patterns (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • I verified that if a function's arguments changed that all usages have also been updated correctly
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native

#77454

checkbox-and-add-to-group-issue-while-adding-participants.mp4

#77412

chat-message-announcement-issue.mp4

#77365

Status-button-profile-page-issue.mp4

#76905

step-button-issue.mp4
Android: mWeb Chrome

N/A - Accessibility changes

iOS: Native

N/A - Accessibility changes

iOS: mWeb Safari

N/A - Accessibility changes

MacOS: Chrome / Safari

#76906

Distance-rates-switch-issue.mp4

#74853 - Ubuntu

Language-dropdown-issue-ubuntu.mp4

#74853 - Mac

Social-links-landing-page-issue.mov

#74855

Language-dropdown-issue.mov

#76905

Steps-section-announcement-issue.mp4

@melvin-bot

melvin-bot Bot commented Jan 26, 2026

Copy link
Copy Markdown

Hey, I noticed you changed src/languages/en.ts in a PR from a fork. For security reasons, translations are not generated automatically for PRs from forks.

If you want to automatically generate translations for other locales, an Expensify employee will have to:

  1. Look at the code and make sure there are no malicious changes.
  2. Run the Generate static translations GitHub workflow. If you have write access and the K2 extension, you can simply click: [this button]

Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running:

npx ts-node ./scripts/generateTranslations.ts --help

Typically, you'd want to translate only what you changed by running npx ts-node ./scripts/generateTranslations.ts --compare-ref main

@melvin-bot

melvin-bot Bot commented Jan 26, 2026

Copy link
Copy Markdown

Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers!

@Uzaifm127
Uzaifm127 marked this pull request as ready for review February 2, 2026 14:04
@Uzaifm127
Uzaifm127 requested review from a team as code owners February 2, 2026 14:04
@melvin-bot
melvin-bot Bot requested review from Pujan92 and joekaufmanexpensify and removed request for a team February 2, 2026 14:04
@melvin-bot

melvin-bot Bot commented Feb 2, 2026

Copy link
Copy Markdown

@Pujan92 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]


const amountOfUnions = stepNames.length - 1;

const isWeb = getPlatform() === CONST.PLATFORM.WEB;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ CONSISTENCY-1 (docs)

Platform-specific logic (getPlatform) is hardcoded within the component. This increases maintenance overhead and complexity.

Suggested fix: Use platform-specific file extensions to handle this logic separately:

  • Create InteractiveStepSubHeader.web.tsx and InteractiveStepSubHeader.native.tsx
  • Or move the platform check to a parent component and pass the behavior as a prop

Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.

clearNegative={clearNegative}
onFocus={props.onFocus}
accessibilityLabel={`${translate('iou.amount')} (${currency})`}
accessibilityLabel={Platform.OS === 'web' ? `${translate('iou.amount')} (${currency})` : undefined}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ CONSISTENCY-1 (docs)

Platform-specific logic (Platform.OS) is hardcoded within the component. This increases maintenance overhead and complexity.

Suggested fix: Use platform-specific file extensions to handle this logic separately:

  • Create MoneyRequestAmountInput.web.tsx and MoneyRequestAmountInput.native.tsx
  • Or handle the accessibility label difference through a utility function in a platform-specific module

Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.

Comment thread src/pages/workspace/distanceRates/PolicyDistanceRatesPage.tsx Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 93cf24d1f5

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +108 to +112
]}
disabled={isLockedStep || !onStepSelected}
onPress={moveToStep}
accessible
accessibilityLabel={`${index + 1}`}
aria-current={currentStep === index ? 'step' : undefined}
accessible={false}
aria-hidden={!isWeb}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep step buttons in the accessibility tree

Setting accessible={false} on the step PressableWithFeedback removes each step button from the accessibility tree, so screen reader users can no longer focus or activate individual steps (the parent View is focusable but has no press action). This regresses step navigation for VoiceOver/TalkBack users in flows where they need to jump between steps; the previous accessibilityLabel/aria-current on each button provided that access.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see only for MissingPersonalDetailsContent we have the step navigation enabled. In future, if we have more components then we can decide the accessibility on parent or child dynamically.

@joekaufmanexpensify

Copy link
Copy Markdown
Contributor

No product considerations, removing my review

@Pujan92

Pujan92 commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

@Uzaifm127 Also check and fix the lint failure.

@Uzaifm127

Copy link
Copy Markdown
Contributor Author

@Pujan92 Will look into the failing test tomorrow.

@Pujan92

Pujan92 commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

Ok, sentryLabel needs to be added for Pressable in the touched files.

@Uzaifm127

Copy link
Copy Markdown
Contributor Author

@Pujan92 Fixed the eslint failure check.

@Pujan92 Pujan92 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@melvin-bot
melvin-bot Bot requested a review from inimaga February 13, 2026 08:57
@inimaga
inimaga merged commit 0fdd13f into Expensify:main Feb 13, 2026
31 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🚧 @inimaga has triggered a test Expensify/App build. You can view the workflow run here.

@OSBotify

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/inimaga in version: 9.3.19-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@nlemma

nlemma commented Feb 16, 2026

Copy link
Copy Markdown

@Uzaifm127 It looks like the “Add to group” button is only inaccessible on iOS. Could you check if there’s anything we should do on our end?

Test1.mp4

@Uzaifm127

Copy link
Copy Markdown
Contributor Author

@nlemma Will try to respond on this before EOD. Thanks for waiting.

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/mountiny in version: 9.3.19-5 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@Uzaifm127

Copy link
Copy Markdown
Contributor Author

@nlemma Add to group button is inaccessible in iOS because it is the by default behaviour of iOS. it isn't caused by this PR or a missing case of this.

Here is the video I recorded with the old version of the app (Before this latest release on staging and production):

ios-native.mov

The reason it is in-accessible in iOS only is, when a container or a box is accessible in iOS then all the items or children inside it are in-accessible by default. This is the default behaviour which existed before too.

Here the Add to group is there inside the list item or participant.

We could make the parent in-accessible but that might leads to other regressions.

Should we open a new issue for this?

cc: @Pujan92 @inimaga for thoughts too.

@inimaga

inimaga commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

@Uzaifm127 Your assessment is fair. I agree that its out of scope for this PR and should be handled in a separate issue. We'll probably open up an issue for it after v1 changes are completed and its flagged as an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants