fix foreground / background colour sync issues#1593
fix foreground / background colour sync issues#1593ahmetskilinc merged 1 commit intoMail-0:07-01-new_email_rendererfrom
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
PR Summary
Implements improved color contrast handling for email rendering with dynamic theme support.
- Added configurable contrast ratio settings in
apps/mail/lib/email-utils.tswith new options parameter forfixNonReadableColorsfunction - Removed 'all: initial' reset in
apps/server/src/lib/email-processor.tsto prevent style inheritance issues - Implemented shadow DOM color processing in
apps/mail/components/mail/mail-content.tsxusing requestAnimationFrame for performance - Added Geist font integration and consistent typography settings for better readability
- Enhanced theme-based color synchronization for text and backgrounds with proper hover states
3 files reviewed, 2 comments
Edit PR Review Bot Settings | Greptile
| const blendedText = | ||
| textColor.alpha() < 1 ? effectiveBg.mix(textColor, effectiveBg.alpha()) : textColor; |
There was a problem hiding this comment.
logic: Potential bug: effectiveBg.alpha() used for mix ratio, but should likely be textColor.alpha()
| }); | ||
| }; | ||
|
|
||
| requestAnimationFrame(applyFix); |
There was a problem hiding this comment.
logic: rAF callback should be cleaned up in useEffect return function to prevent memory leaks
before:
https://github.com/user-attachments/assets/151e6464-a193-400a-9eae-921028568b74
after:
https://github.com/user-attachments/assets/678220f7-da56-4f3a-895c-38dfe7e5b7fc