Skip to content

fix: Update CSS rules for GT tables in dark mode#235

Merged
rich-iannone merged 1 commit into
mainfrom
fix-gt-tables-dark-mode
Jun 26, 2026
Merged

fix: Update CSS rules for GT tables in dark mode#235
rich-iannone merged 1 commit into
mainfrom
fix-gt-tables-dark-mode

Conversation

@rich-iannone

Copy link
Copy Markdown
Member

The PR addresses GT tables losing their styling in the docs because global element-level theme rules bleed into the self-contained gt table. For example, in dark mode p/code text turned light-gray and amber-on-dark, and in both modes the p { font-family } rule overrode the report title's font (gt wraps the title in a <p>) while leaving the rest of the table on its own font. This adds .gt_table-scoped exemptions that hand color, background-color, and font-family back to gt's own cascade, so gt tables render identically and correctly in light and dark mode.

@rich-iannone rich-iannone merged commit a48ffeb into main Jun 26, 2026
8 checks passed
@rich-iannone rich-iannone deleted the fix-gt-tables-dark-mode branch June 26, 2026 04:09
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.

1 participant