fix: Table cell colors (BLO-1198)#2770
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThis PR fixes table cell text and background color rendering by refactoring CSS selectors to target ChangesTable Cell Colors Fix
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
packages/core/src/editor/Block.cssParsing error: Declaration or statement expected. packages/react/src/editor/styles.cssParsing error: Expression expected. 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. Comment |
@blocknote/ariakit
@blocknote/code-block
@blocknote/core
@blocknote/mantine
@blocknote/react
@blocknote/server-util
@blocknote/shadcn
@blocknote/xl-ai
@blocknote/xl-docx-exporter
@blocknote/xl-email-exporter
@blocknote/xl-multi-column
@blocknote/xl-odt-exporter
@blocknote/xl-pdf-exporter
commit: |
Summary
PR #2684 caused a regression for highlight colors in a few places. PR #2762 fixed those regressions for the color picker icons, but table cells remained broken.
After review, the reason for the regression in #2684 was caused by the removal of the following CSS selector for applying colors:
This was a mistake - this selector should have been kept, and the
.bn-block:has(> .bn-block-content[data-text-color="..."])added to it, rather than replacing it.This PR re-adds the removed selector, which covers both table cell & color picker icon colors.
Closes #2760
Rationale
This is a regression.
Changes
See above.
Impact
N/A
Testing
Added e2e test.
Screenshots/Video
N/A
Checklist
Additional Notes
N/A
Summary by CodeRabbit
Refactor
Tests