You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expense - Long email is centered in description field #93068
Version Number: 9.4.1-4 Reproducible in staging?: Yes Reproducible in production?: No If this was caught during regression testing, add the test name, ID and link from BrowserStack:#92776 Email or phone of affected tester (no customers):jsodinjosdjsoinjsiojs@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.5 / Chrome App Component: Money Requests
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Please re-state the problem that we are trying to solve in this issue.
When an expense's description is a single long auto-linked email/URL (e.g. sdsidjsdsoidnjsoidjso@gmail.com), opening the expense shows the wrapped description centered instead of left-aligned.
This is a follow-on regression from #92776 (the PR this issue auto-assigned for). That PR fixed the same centering bug for chat message rows but did not cover the expense description field, which is a separate render surface.
What is the root cause of that problem?
Same mechanism as the original regression (#92668), in a new surface:
#92776 removed styles.dInlineFlex from comment anchors in AnchorRenderer.tsx, which exposed a pre-existing inherited text-align: center.
The description renders via MenuItemWithTopDescription with shouldRenderAsHTML → MenuItem. The wrapping PressableWithSecondaryInteraction defaults to role="button", which react-native-web renders as a native <button>. The browser UA stylesheet sets text-align: center on <button>, and text-align is inherited.
The HTML title branch wraps <RenderHTML> in a plain <View> — not a <Text>. RNW <Text> always emits a textAlign reset; <View> does not. With no resetting <Text> between the <button> and the anchor, the inherited center cascades to the wrapped second line. (The sibling non-HTML branch uses <Text>, so it's unaffected.)
Evidence / cascade chain (verified by code read)
PressableWithSecondaryInteraction (role=button → <button>, source of center) MenuItem.tsx:851
└── View … View (no textAlign anywhere) MenuItem.tsx:888-1020
└── View style={styles.renderHTMLTitle} (no textAlign) MenuItem.tsx:1025
└── RenderHTML MenuItem.tsx:1026
└── AnchorForCommentsOnly → Text (wrapped 2nd line inherits center)
What changes do you think we should make in order to solve the problem?
Recommended (fixes the whole class, prevents the next whack-a-mole): reset alignment once in MenuItem's HTML title branch, mirroring what the <Text> branch already does implicitly. Add styles.textAlignLeft to the <View> wrapping <RenderHTML> at MenuItem.tsx:1025:
This protects every shouldRenderAsHTML MenuItem (description, and other fields that render HTML) from the same regression — important because this exact bug has already regressed twice (#92668 chat rows, now #93068 description).
What alternative solutions did you explore?
Most surgical (deploy-blocker-only): add styles.textAlignLeft to the description item's wrapperStyle at MoneyRequestView.tsx:1041, exactly matching the #92776 pattern:
This fixes only this issue but leaves other HTML-rendering MenuItems exposed to the same root cause.
Confidence: High — fully verified by static code read; this is a purely client-side CSS-cascade issue, so no production logs are needed.
Next Steps for Contributor+ team: To accept:@MelvinBot implement [this](https://github.com/Expensify/App/issues/93068) to create a draft PR. To refine:@MelvinBot <your feedback> To reject: Explain why you are rejecting Melvin's proposal.
Activity
applause-bot commentedon Jun 9, 2026
While Applause doesn't embed attachments for this bug, here are the links for quick view:
https://platform.applause.com/services/links/v1/external/e7b7ea7f0f7dff00b7b01e9453f2625ada021e5a32a1e7be66eb6061c6682455
melvin-bot commentedon Jun 9, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #92776
melvin-bot commentedon Jun 9, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Jun 9, 2026
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
MelvinBot commentedon Jun 9, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
When an expense's description is a single long auto-linked email/URL (e.g.
sdsidjsdsoidnjsoidjso@gmail.com), opening the expense shows the wrapped description centered instead of left-aligned.This is a follow-on regression from #92776 (the PR this issue auto-assigned for). That PR fixed the same centering bug for chat message rows but did not cover the expense description field, which is a separate render surface.
What is the root cause of that problem?
Same mechanism as the original regression (#92668), in a new surface:
styles.dInlineFlexfrom comment anchors inAnchorRenderer.tsx, which exposed a pre-existing inheritedtext-align: center.MenuItemWithTopDescriptionwithshouldRenderAsHTML→MenuItem. The wrappingPressableWithSecondaryInteractiondefaults torole="button", which react-native-web renders as a native<button>. The browser UA stylesheet setstext-align: centeron<button>, andtext-alignis inherited.<RenderHTML>in a plain<View>— not a<Text>. RNW<Text>always emits atextAlignreset;<View>does not. With no resetting<Text>between the<button>and the anchor, the inheritedcentercascades to the wrapped second line. (The sibling non-HTML branch uses<Text>, so it's unaffected.)Evidence / cascade chain (verified by code read)
MoneyRequestView.tsx:1021-1048(shouldRenderAsHTML,wrapperStyleat L1041 has notextAlign)<Text>reset):MenuItem.tsx:1024-1028roledefaultBUTTON:MenuItem.tsx:604<comment>→ routes throughAnchorForCommentsOnly(same surface Remove inline-flex from comment anchors and reset chat row text alignment #92776 touched):MenuItem.tsx:732-748renderHTMLTitlenortaskDescriptionMenuItemdefinetextAlign.PureReportActionItem.tsx:490-504usedstyles.textAlignLeft.What changes do you think we should make in order to solve the problem?
Recommended (fixes the whole class, prevents the next whack-a-mole): reset alignment once in
MenuItem's HTML title branch, mirroring what the<Text>branch already does implicitly. Addstyles.textAlignLeftto the<View>wrapping<RenderHTML>atMenuItem.tsx:1025:This protects every
shouldRenderAsHTMLMenuItem (description, and other fields that render HTML) from the same regression — important because this exact bug has already regressed twice (#92668 chat rows, now #93068 description).What alternative solutions did you explore?
Most surgical (deploy-blocker-only): add
styles.textAlignLeftto the description item'swrapperStyleatMoneyRequestView.tsx:1041, exactly matching the #92776 pattern:This fixes only this issue but leaves other HTML-rendering MenuItems exposed to the same root cause.
Confidence: High — fully verified by static code read; this is a purely client-side CSS-cascade issue, so no production logs are needed.
Next Steps for Contributor+ team:
To accept:
@MelvinBot implement [this](https://github.com/Expensify/App/issues/93068)to create a draft PR.To refine:
@MelvinBot <your feedback>To reject: Explain why you are rejecting Melvin's proposal.
Beamanator commentedon Jun 9, 2026
Revert merged, working on CPing
m-natarajan commentedon Jun 9, 2026
Not repro, Win 11/Chrome, v9.4.1-5
Recording.2989.mp4
Beamanator commentedon Jun 9, 2026
great! closing!