fix(mobile): theme markdown table body rows in the PR description

Merged
SA
3mo ago
+2-0

Problem

Markdown tables in the mobile PR description rendered with white body rows and near-white text on the dark theme — every other row looked empty, the rest barely legible.

DESCRIPTION_MARKDOWN_STYLE themed the table header, border and text but never set the body row backgrounds, so react-native-enriched-markdown's defaults leaked through (even rows #FFFFFF, odd rows #F9FAFB).

Fix

Set rowEvenBackgroundColor / rowOddBackgroundColor to THEME.dark.background — the same flat-row treatment the chat markdown table (MESSAGE_MARKDOWN_STYLE) already uses. Border width, radius and cell padding stay at the library defaults, which already match the chat style.

Verified

Rendered PullRequestDescription with PR #6635's body on the iPhone 16e simulator via a temporary Storybook story: all nine provider rows readable on dark, secondary header, 1px border. Before/after: https://claude.ai/code/artifact/d8799837-7ab8-4e3b-9964-0d65ce8c29cb


Summary by cubic

Fixes unreadable markdown table body rows in the mobile PR description on dark theme by theming the body backgrounds. Previously react-native-enriched-markdown defaults set even rows to #FFFFFF and odd to #F9FAFB against near-white text; now both use THEME.dark.background, matching chat table styling.

Review/QA

  • Change: set rowEvenBackgroundColor and rowOddBackgroundColor in DESCRIPTION_MARKDOWN_STYLE; header/border/text remain as before.
  • Scope: affects PR description tables in dark theme only; no API or prop changes; border radius/width and cell padding remain library defaults.
  • Verify: open a PR description with a markdown table in dark mode; body rows sit on the app background, header uses secondary, 1px border, and text is readable.

Summary by CodeRabbit

  • Style
    • Improved pull request description tables with consistent dark-theme background colors for alternating rows.