Skip to content

[Due for payment 2026-06-26] [$250] [A11y] Screen Reader - Connect button not focusable using VoiceOver #93461

Closed

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.4.6-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #92865
Email or phone of affected tester (no customers): joelarmandotester+837@gmail.com
Issue reported by: Applause Internal Team
Bug source: Pull Request QA execution
Device used: IPhone 12 / IOS 26.5
App Component: Workspace Settings

Action Performed:

Preconditions:

  • The user has created an account and has the workspace set to control mode to enable the “Accounting” integration.
  1. Using iOS VoiceOver, launch the Hybrid app.
  2. Go to Workspace settings, tap on "Accounting."
  3. Tap on NetSuite.

Expected Result:

VoiceOver should focus each “Connect” button as a separate accessible element and allow the user to activate it with a double tap.

Actual Result:

When VoiceOver is enabled, the “Connect” button cannot be focused or selected individually. VoiceOver focuses the entire provider row instead of the button.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome Safari

Screenshots/Videos

Bug7179077_1781280579029.92865_issue.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Murugesan Natarajan
Bug ID: 7179077

Upwork Automation - Do Not Edit
Issue OwnerCurrent Issue Owner: @dmkt9

Activity

  1. added
    Daily
    Bug
    on Jun 12, 2026
  2. applause-bot commented on Jun 12, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/72b40b44a6bf5f1bc8ddbe77cbcbee13d6af07f86afd83b149e7c98c9d6d85ab

  3. MelvinBot commented on Jun 12, 2026

    @MelvinBot
    Contributor

    🚨 Edited by proposal-police: This proposal was edited at 2026-06-16 04:03:53 UTC.

    Proposal

    Updated 2026-06-16: Scoped the fix to native iOS only, per review feedback from dmkt9 — the original version applied shouldBeAccessible: false on all platforms, which would change Android (TalkBack) grouping behavior unnecessarily.

    What is the root cause of that problem?

    The accounting integration rows on the Accounting page are rendered as MenuItems with interactive: false, and the Connect button is passed as the rightComponent. See the row config at PolicyAccountingPage.tsx:365-405 (the button text workspace.accounting.setup resolves to 'Connect').

    MenuItem defaults shouldBeAccessible = true, which sets accessible={true} on the wrapping pressable at MenuItem.tsx:881. On native iOS, accessible={true} on a parent collapses all descendants into a single accessibility element. As a result VoiceOver focuses the whole provider row instead of the nested Connect button, and the button can't be focused or double-tapped individually — exactly the reported symptom.

    Why this is the mechanism
    • The row is non-interactive (interactive: false), so the only interactive thing in it is the Connect button in rightComponent. But because the wrapper is marked accessible, iOS merges the button into the row's single accessibility node.
    • This is a known React Native iOS behavior. Other surfaces with the same pattern opt out: ApprovalWorkflowSection.tsx:125 and :166.
    • The bug is native-iOS-specific: the report only checks the iOS App platform, and the subtree-collapsing behavior of the native accessible prop does not apply the same way on Android (TalkBack) or web.

    What changes do you think we should make in order to solve the problem?

    Set shouldBeAccessible to false only on native iOS on the integration row config objects, leaving every other platform on the current default (true):

    import getPlatform from '@libs/getPlatform';
    // ...
    shouldBeAccessible: getPlatform() === CONST.PLATFORM.IOS ? false : true,

    Apply this to both row builders that render the Connect Button as rightComponent:

    shouldBeAccessible is already a valid MenuItemProps/MenuItemData prop and is forwarded through MenuItemList, so no type or component changes are needed.

    Why gate on getPlatform() === CONST.PLATFORM.IOS: it is true only in the native iOS app — iOS mWeb resolves to WEB, so this touches only the platform where the bug exists. The native iOS row stops collapsing into one element, letting VoiceOver focus and activate the Connect button on its own, while Android (TalkBack) and web keep their existing grouped behavior unchanged — avoiding the Android regression dmkt9 flagged.

    What alternative solutions did you explore? (Optional)

    Rejected alternatives
    • Apply shouldBeAccessible: false unconditionally (the previous version of this proposal). Simpler, but it changes the row's accessibility grouping on Android and web too, where the row currently works as intended — an unnecessary behavior change / regression risk on platforms that don't have the bug.
    • Flip the default of shouldBeAccessible to follow interactive inside MenuItem. More general but riskier — many non-interactive MenuItems app-wide intentionally rely on being a single grouped accessibility element, so changing the shared default could regress their VoiceOver/TalkBack announcements.

    Next Steps for Contributor+ team:
    To accept: @MelvinBot implement [this](https://github.com/Expensify/App/issues/93461) to create a draft PR.
    To refine: @MelvinBot <your feedback>
    To reject: Explain why you are rejecting Melvin's proposal.

  4. added
    External
    on Jun 12, 2026
  5. added
    Help Wanted
    on Jun 12, 2026
  6. lorretheboy commented on Jun 12, 2026

    @lorretheboy
    Contributor

    Proposal

    What is the root cause of that problem?

    On the Accounting page each provider row is a MenuItem rendered with interactive: false, with the "Connect"/Setup Button passed in as rightComponent:

    return {
    ...iconProps,
    interactive: false,
    wrapperStyle: [styles.sectionMenuItemTopDescription],
    shouldShowRightComponent: true,
    title: integrationData?.title,
    badgeText: isXero ? translate('workspace.accounting.claimOffer.badgeText') : undefined,
    onBadgePress:
    isXero && canWriteAccounting
    ? () => {
    Navigation.navigate(ROUTES.POLICY_ACCOUNTING_CLAIM_OFFER.getRoute(policyID, CONST.POLICY.CONNECTIONS.NAME.XERO));
    }
    : undefined,
    badgeStyle: styles.mr3,
    isBadgeSuccess: isXero,
    shouldShowBadgeBelow: shouldUseNarrowLayout,
    rightComponent: (
    <Button
    onPress={() => {
    if (!canWriteAccounting) {
    showReadOnlyModal();
    return;
    }
    startIntegrationFlow({name: integration});
    }}
    text={translate('workspace.accounting.setup')}
    style={styles.justifyContentCenter}
    innerStyles={!canWriteAccounting ? [styles.buttonOpacityDisabled, styles.buttonDisabled] : undefined}
    hoverStyles={!canWriteAccounting ? [styles.buttonOpacityDisabled, styles.buttonDisabled] : undefined}
    small
    isDisabled={isOffline}
    ref={(ref) => {
    if (!popoverAnchorRefs?.current) {
    return;
    }
    popoverAnchorRefs.current[integration].current = ref;
    }}
    sentryLabel={CONST.SENTRY_LABEL.WORKSPACE.ACCOUNTING.SETUP_BUTTON}
    />
    ),

    MenuItem always sets accessible on its outer PressableWithSecondaryInteraction to shouldBeAccessible, which defaults to true and is not tied to interactive:

    accessible={shouldBeAccessible}

    shouldBeAccessible = true,

    On iOS, a view with accessible={true} is treated as a single accessibility element and merges all of its descendants into itself. So the whole row becomes one VoiceOver element → the nested Connect button is absorbed into it → VoiceOver focuses the entire provider row and can never focus or double‑tap the button on its own. The row being interactive: false is exactly the case where this is wrong: the row itself does nothing, but it still steals accessibility focus from the only actionable child.

    What changes do you think we should make in order to solve the problem?

    Stop the wrapper from claiming accessibility focus when the row is non‑interactive, so its children (the Connect button) become individually focusable. In MenuItem, gate accessible on interactive:

    accessible={shouldBeAccessible}

    i.e. accessible={interactive && shouldBeAccessible}. A non‑interactive row has nothing to activate, so it shouldn't be a focus target; its real interactive content (here the rightComponent button) then gets exposed to VoiceOver as its own element with the correct "double tap to activate" behavior.

    This is the shared convergence point, so it fixes every non‑interactive MenuItem that hosts an interactive rightComponent (all the accounting provider rows — QBO, Xero, NetSuite, Sage Intacct, QBD, etc.), not just NetSuite.

    What alternative solutions did you explore? (Optional)

    Pass shouldBeAccessible={false} from the accounting rows only:

    return {
    ...iconProps,
    interactive: false,
    wrapperStyle: [styles.sectionMenuItemTopDescription],
    shouldShowRightComponent: true,
    title: integrationData?.title,
    badgeText: isXero ? translate('workspace.accounting.claimOffer.badgeText') : undefined,
    onBadgePress:
    isXero && canWriteAccounting
    ? () => {
    Navigation.navigate(ROUTES.POLICY_ACCOUNTING_CLAIM_OFFER.getRoute(policyID, CONST.POLICY.CONNECTIONS.NAME.XERO));
    }
    : undefined,
    badgeStyle: styles.mr3,
    isBadgeSuccess: isXero,
    shouldShowBadgeBelow: shouldUseNarrowLayout,
    rightComponent: (
    <Button
    onPress={() => {
    if (!canWriteAccounting) {
    showReadOnlyModal();
    return;
    }
    startIntegrationFlow({name: integration});
    }}
    text={translate('workspace.accounting.setup')}
    style={styles.justifyContentCenter}
    innerStyles={!canWriteAccounting ? [styles.buttonOpacityDisabled, styles.buttonDisabled] : undefined}
    hoverStyles={!canWriteAccounting ? [styles.buttonOpacityDisabled, styles.buttonDisabled] : undefined}
    small
    isDisabled={isOffline}
    ref={(ref) => {
    if (!popoverAnchorRefs?.current) {
    return;
    }
    popoverAnchorRefs.current[integration].current = ref;
    }}
    sentryLabel={CONST.SENTRY_LABEL.WORKSPACE.ACCOUNTING.SETUP_BUTTON}
    />
    ),

    This is more targeted but leaves the same trap for any other non‑interactive MenuItem with an interactive right component, so fixing it once in MenuItem is preferable.

  7. godzillaxbox19982014-lgtm commented on Jun 12, 2026

    @godzillaxbox19982014-lgtm

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Screen Reader - Connect button not focusable using VoiceOver

    What is the root cause of that problem?

    I traced this to the path that handles workspace creation, VoiceOver, IPhone:

    • src/pages/workspace/accounting/netsuite/NetSuiteTokenInput/NetSuiteExistingConnectionsPage.tsx:17 (NetSuiteExistingConnectionsPage): type ExistingConnectionsPageProps = PlatformStackScreenProps<SettingsNavigatorParamList, typeof SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_REUSE_EXISTING_CONNECTIONS>;
    • src/pages/workspace/accounting/certinia/CertiniaExistingConnectionsPage.tsx:22 (CertiniaExistingConnectionsPage): type CertiniaExistingConnectionsPageProps = PlatformStackScreenProps<SettingsNavigatorParamList, typeof SCREENS.WORKSPACE.ACCOUNTING.CERTINIA_EXISTING_CONNECTIONS>;
    • src/pages/workspace/accounting/qbd/QuickbooksDesktopExistingConnectionsPage.tsx:25 (QuickbooksDesktopExistingConnectionsPage): type QuickbooksDesktopExistingConnectionsPageProps = PlatformStackScreenProps<SettingsNavigatorParamList, typeof SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_REUSE_EXISTING_CONNECTIONS>;
    • The local evidence matches this recurring failure shape: component state is keyed to every load instead of initial load. Here, src/pages/workspace/accounting/netsuite/NetSuiteTokenInput/NetSuiteExistingConnectionsPage.tsx:17 and src/pages/workspace/accounting/certinia/CertiniaExistingConnectionsPage.tsx:22 do not agree on the same workspace creation, VoiceOver, IPhone value, so the user-visible path can show a missing or stale state even though nearby data already has the needed context.

    What changes do you think we should make in order to solve the problem?

    • Update src/pages/workspace/accounting/netsuite/NetSuiteTokenInput/NetSuiteExistingConnectionsPage.tsx:17 to derive workspace creation, VoiceOver, IPhone from the matched app state path that owns this flow before the value is consumed.
    • Carry the same normalized value through src/pages/workspace/accounting/certinia/CertiniaExistingConnectionsPage.tsx:22; that follows the safer family move to add a local hasEverLoaded/hasInteracted guard, so the write/optimistic/read paths agree instead of only changing the visible component.
    • Keep the change inside the UI, Forms, Lists, Accessibility surface and avoid changing platform-specific variants, screen reader behaviour.

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    1. Add or update a regression in tests/components/**/*.ts for the exact issue flow: Screen Reader - Connect button not focusable using VoiceOver.
    2. Cover the counter-case near src/pages/workspace/accounting/netsuite/NetSuiteTokenInput/NetSuiteExistingConnectionsPage.tsx:17 so valid existing workspace creation, VoiceOver, IPhone behavior still works.
    3. Manually repeat the issue steps after the patch and confirm the visible state/action is no longer stale.

    What alternative solutions did you explore? (Optional)

    • I would not add a broad new condition outside these referenced paths; the safer fix is to keep workspace creation, VoiceOver, IPhone consistent at the first read/write boundary shown above.
  8. melvin-bot commented on Jun 12, 2026

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @dmkt9 (External)

  9. changed the title [-]Screen Reader - Connect button not focusable using VoiceOver[/-] [+][$250] Screen Reader - Connect button not focusable using VoiceOver[/+] on Jun 12, 2026
  10. melvin-bot commented on Jun 12, 2026

    @melvin-bot
  11. aswin-s commented on Jun 12, 2026

    @aswin-s
    Contributor

    🚫 Duplicated proposal withdrawn by 🤖 ProposalPolice.

  12. yusufdeveloper2903 commented on Jun 12, 2026

    @yusufdeveloper2903
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    On the Workspace → Accounting page (iOS, VoiceOver enabled), the "Connect" button next to each integration provider (NetSuite, QuickBooks, Xero, etc.) cannot be focused or activated on its own. VoiceOver focuses the entire provider row as a single element instead of the individual "Connect" button.

    What is the root cause of that problem?

    Each provider row on the Accounting page is rendered as a MenuItem whose rightComponent is the "Connect" Button. The row config explicitly marks the row itself as non-interactive but still wraps the interactive button:

    https://github.com/Expensify/App/blob/103cd4a355e/src/pages/workspace/accounting/PolicyAccountingPage.tsx#L365-L405

    return {
        ...iconProps,
        interactive: false,                 // the row is NOT meant to be a button
        shouldShowRightComponent: true,
        title: integrationData?.title,
        ...
        rightComponent: (
            <Button onPress={() => { ... startIntegrationFlow({name: integration}); }}
                text={translate('workspace.accounting.setup')}  // "Connect"
                ...
            />
        ),
    };

    MenuItem renders all of its content inside a single PressableWithSecondaryInteraction, and that wrapper receives accessible={shouldBeAccessible}, where shouldBeAccessible defaults to true:

    On iOS, setting accessible={true} on a view turns it into a single accessibility element and collapses all of its descendants into that one element — VoiceOver can no longer focus any child individually. So even though the row passes interactive: false, the wrapper is still accessible, which is why VoiceOver lands on the whole provider row and the nested "Connect" Button is unreachable.

    Note that interactive and shouldBeAccessible are independent: making the row non-interactive does not turn off accessible, so the accessibility-grouping behavior persists. The Accounting rows never opt out of it, hence the bug.

    What changes do you think we should make in order to solve the problem?

    For these connection rows the row itself is decorative (interactive: false); the only actionable element is the nested "Connect" Button. We should stop the MenuItem wrapper from grouping its children into one accessibility element by passing shouldBeAccessible: false on the row config, so the title and the "Connect" button each become their own VoiceOver-focusable element.

                            ...iconProps,
                            interactive: false,
    +                       shouldBeAccessible: false,
                            wrapperStyle: [styles.sectionMenuItemTopDescription],
                            shouldShowRightComponent: true,

    (in connectionsMenuItems, https://github.com/Expensify/App/blob/103cd4a355e/src/pages/workspace/accounting/PolicyAccountingPage.tsx#L365-L368)

    This is exactly the established convention for the "non-interactive MenuItem row that contains its own interactive child" case. The Workflows approval section already does this so that the inline UserPills/buttons inside a non-interactive row stay independently accessible:

    https://github.com/Expensify/App/blob/103cd4a355e/src/components/ApprovalWorkflowSection.tsx#L118-L149

    and the Expensify Card page does the same for its nested actions:

    https://github.com/Expensify/App/blob/103cd4a355e/src/pages/settings/Wallet/ExpensifyCardPage/index.tsx#L470-L473

    Notes / edge cases:

    • The Button already carries its own text="Connect", so once it is reachable VoiceOver announces it correctly and "double tap to activate" works as expected.
    • MenuItemData is MenuItemProps & {...}, so shouldBeAccessible is already a valid field on the row object — no type changes needed.
    • This is presentation-only and platform-agnostic; it has no effect on offline behavior or the connect flow. On web/keyboard the row already sets tabIndex based on interactive, so the button remains tabbable there. No regression for the connected-integration rows since this change is scoped to the not-yet-connected connectionsMenuItems branch.

    What alternative solutions did you explore? (Optional)

    • Flip the default of shouldBeAccessible to follow interactive inside MenuItem (e.g. accessible={interactive ? shouldBeAccessible : false}). This would fix the symptom globally but is risky — many non-interactive MenuItems intentionally rely on being a single grouped accessibility element (so VoiceOver reads "title, description" as one announcement). Changing the shared default could regress those, so a row-scoped opt-out matching existing precedent is the safer fix.
    • Add an explicit accessibilityLabel/accessibilityRole to the wrapper. That only changes what the grouped row announces; it does not make the nested "Connect" button independently focusable, so it doesn't actually solve the reported problem.
  13. 58 remaining items

  14. added
    Daily
    Awaiting Payment
    on Jun 25, 2026
  15. melvin-bot commented on Jun 25, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  16. melvin-bot commented on Jun 25, 2026

    @melvin-bot

    Payment Summary

    Upwork Job

    • ROLE: @dmkt9 paid $(AMOUNT) via Upwork (LINK)

    BugZero Checklist (@mallenexpensify)

    • I have verified the correct assignees and roles are listed above and updated the necessary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/2065497767589217567/hired)
    • I have verified the PR was not reverted
    • I have applied any discounts due to bugs/regressions introduced by this PR
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  17. mallenexpensify commented on Jun 28, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor+: @dmkt9 paid $250 via Upwork

    @dmkt9 can you please accept the job below? Please reply here and tag me once you have.
    If you're not sent an offer in Upwork when you're assigned to an issue, please tag me. If an Upwork job exists, please submit a proposal.
    https://www.upwork.com/jobs/~022065497767589217567

    @dmkt9 in a dedicated post, can you enter your Upwork details? I'm hoping they'll be saved to send you auto-offers in the future. Thx

    Contributor details
    Your Expensify account email: email@email.com
    Upwork Profile Link: upwork.com/freelancers/~xxxxx

    I know you've done the above before, I'm wanting to see what error message shows so we can figure out the bug of not get auto-offers from Upwork

  18. dmkt9 commented on Jun 29, 2026

    @dmkt9
    Contributor

    Contributor details
    Your Expensify account email: demoskratos9x@gmail.com
    Upwork Profile Link: upwork.com/freelancers/~014bc7fd46d2034619

  19. melvin-bot commented on Jun 29, 2026

    @melvin-bot

    ✅ Contributor details stored successfully. Thank you for contributing to Expensify!

  20. dmkt9 commented on Jun 29, 2026

    @dmkt9
    Contributor

    @dmkt9 in a dedicated post, can you enter your Upwork details? I'm hoping they'll be saved to send you auto-offers in the future. Thx

    @mallenexpensify Sure

    @dmkt9 can you please accept the job below? Please reply here and tag me once you have.

    Thanks. I've accepted the offer.

  21. changed the title [-][Due for payment 2026-06-26] [$250] Screen Reader - Connect button not focusable using VoiceOver[/-] [+][Due for payment 2026-06-26] [$250] [A11y] Screen Reader - Connect button not focusable using VoiceOver[/+] on Jun 29, 2026
  22. mallenexpensify commented on Jun 30, 2026

    @mallenexpensify
    Contributor

    @dmkt9 paid, summary updated above. Thx.
    Thx for entering your Upwork deets. If you're not sent an offer in Upwork the next time you're assigned to a GH issue, can you tag me in that issue so I can try to, finally, fix the bug fixed Thx.

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions