Skip to content

Fix formula traceback color in dark mode#2394

Open
Federicorao wants to merge 1 commit into
gristlabs:mainfrom
Federicorao:federicorao/fix-dark-mode-traceback
Open

Fix formula traceback color in dark mode#2394
Federicorao wants to merge 1 commit into
gristlabs:mainfrom
Federicorao:federicorao/fix-dark-mode-traceback

Conversation

@Federicorao

Copy link
Copy Markdown

Summary

Fixes #2367.

Formula traceback details use a light warning-tinted background, but the text color was inherited. In dark mode that means the traceback can inherit light text and become unreadable on the light background. This sets the traceback details text color explicitly to black, matching the existing formula error summary styling.

Checks

  • git diff --check
  • npx --yes postcss-cli@11.0.1 app/client/widgets/TextEditor.css --no-map --output /tmp/grist-texteditor.css
  • Contrast sanity check: #efefef on #F8EAD5 is 1.03:1; black on #F8EAD5 is 17.72:1

Note: npx --yes prettier@3.6.2 --check app/client/widgets/TextEditor.css reports existing formatting differences in the legacy CSS file, so I did not reformat the whole file for this one-line fix.


Written by an agent for Federicorao (GPT-5).

@paulfitz paulfitz added the preview Launch preview deployment of this PR label Jun 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Deployed commit 12959e12ec3edb6ea9dc2f200250c163757fb1f2 as https://grist-ao-grist-core-federicorao-fix-dark-mode-traceback-2b946c.fly.dev (until 2026-07-15T13:52:44.121Z)

@paulfitz paulfitz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! This is an improvement. The theming work on this area feels underdeveloped, but that would be a separate improvement.

@paulfitz

Copy link
Copy Markdown
Member

I'll land if you okay with moving this out of draft @Federicorao.

@Federicorao Federicorao marked this pull request as ready for review June 18, 2026 10:52
@Federicorao

Copy link
Copy Markdown
Author

Thanks @paulfitz! This is already out of draft, so it's ready to land from my side whenever convenient. Much appreciated.

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

Labels

preview Launch preview deployment of this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A11y - Traceback error unreadable in dark mode

2 participants