GeezerVison is showing github.com — fix(emcn): stop calendar content bleeding through the modal backdrop by waleedlatif1 · Pull Request #5311 · simstudioai/sim
Conversation
Summary
- The shared modal's
backdrop-blur overlay did not reliably paint above page content the browser had GPU-promoted — position: sticky headers and z-indexed absolutes inside a scroll container (e.g. the scheduled-tasks calendar's sticky day headers, toolbar chevrons, and event chips). Those composited layers sorted above the overlay despite its higher z-index, bleeding through the backdrop and over the modal panel.
- Fix: promote both the overlay and the content wrapper to their own compositing layers via
[transform:translateZ(0)], so the GPU compositor honors stacking order. Compositing hint only — no layout, spacing, z-index, focus, or event-handling change.
- Not a regression: every ingredient (the blur overlay + the calendar's sticky/z layers) has coexisted since the calendar first shipped (feat(scheduled-tasks): calendar views + persisted, runnable tasks #4979). The emcn extraction touched these files import-only;
modal.tsx is byte-identical pre/post-move.
Type of Change
Testing
Tested manually. Note: this is a GPU-compositor behavior that is hard to reproduce deterministically headless — verified the reasoning via git archaeology and the isolated repro; needs a real-Mac eyeball that (1) the bleed is gone and (2) modal text stays crisp across a couple of modals.
Checklist
- Code follows project style guidelines
- Self-reviewed my changes
- Tests added/updated and passing
- No new warnings introduced
- I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
greptile-apps[bot] reacted with thumbs up emoji
… layers
The backdrop-blur overlay did not reliably paint above page content the
browser had GPU-promoted (position: sticky headers and z-indexed absolutes
inside a scroll container, e.g. the scheduled-tasks calendar), so those
composited layers bled through the overlay despite its higher z-index.
Force the overlay and the content wrapper onto their own compositing
layers via translateZ(0) so the compositor honors stacking order.
Inherent since the calendar shipped (#4979), not a refactor regression.
vercel
Bot
commented
Jul 1, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
cursor
Bot
commented
Jul 1, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
PR Summary
Low Risk
Import-only change in three modal files; behavior is limited to which React component backs the header icon.
Overview
Scheduled-task modals (TaskModal, TaskDetailsModal, TaskDeleteDialog) now import the Calendar glyph from @sim/emcn/icons instead of @sim/emcn, where the barrel explicitly resolves Calendar to the date-picker component.
ChipModalHeader still receives icon={Calendar}, but it is now the SVG icon rather than the full calendar grid—avoiding the wrong control being rendered in the header (and the compositing/visual issues that came with painting page-like calendar UI in the modal chrome).
Reviewed by Cursor Bugbot for commit 292891c. Bugbot is set up for automated code reviews on this repo. Configure here.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Greptile Summary
This PR updates the shared EMCN modal layering fix. The main changes are:
- Adds a compositing hint to the modal backdrop.
- Adds the same hint to the fixed modal content wrapper.
- Documents why promoted calendar layers could bleed through the blurred backdrop.
Confidence Score: 5/5
This looks safe to merge.
- No blocking issues found in the changed code.
Important Files Changed
| Filename |
Overview |
| packages/emcn/src/components/modal/modal.tsx |
Adds translateZ(0) compositing hints to the modal overlay and fixed content wrapper without changing modal logic, focus handling, events, or sizing. |
Reviews (1): Last reviewed commit: "fix(emcn): promote modal overlay + conte..." | Re-trigger Greptile
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…positing layers"
This reverts commit 52145ed.
Uh oh!
There was an error while loading. Please reload this page.
This branch was previously deployed
1 inactive
deployment
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|