Contrast theme and context menu fixes for bugs raised by Danny - #737
Conversation
📝 WalkthroughWalkthroughThe change adds standard SVG ChangesUI compatibility and toolbar placement
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant BlockToolbar
participant positionBlockToolbar
participant Workspace
participant HatBlock
participant ToolbarStyles
BlockToolbar->>positionBlockToolbar: Request placement
positionBlockToolbar->>Workspace: Read visible top boundary
positionBlockToolbar->>HatBlock: Read statement-jaw position when needed
positionBlockToolbar->>ToolbarStyles: Apply below placement and upward caret
positionBlockToolbar-->>BlockToolbar: Return clamped position
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@style.css`:
- Around line 1485-1488: The current selector for `[data-theme='contrast']
.example-tab` does not apply to the `dark-contrast` theme, leaving unselected
tabs with insufficient contrast. Extend the selector to also handle
`[data-theme='dark-contrast'] .example-tab` by combining both theme variants
into a single rule or creating a separate rule for the dark-contrast variant,
ensuring the color property addresses the contrast issue for both themes.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 2e7b6041-1bf4-459b-81ad-96ad253ad296
📒 Files selected for processing (3)
main/themes.jsstyle.cssui/contextmenu.js
Summary
AI usage
Claude Sonnet 5 implemented changes, checked and planned by me.
Summary by CodeRabbit
Bug Fixes
Accessibility
UI Improvements