Feature/share mask/imagine10255#17
Open
imagine10255 wants to merge 3 commits into
Open
Conversation
以 module-level store (maskStore) 協調全域唯一一張遮罩 (SharedMask), 取代每層 Modal 各自渲染遮罩的舊行為: - 遮罩永遠卡在「最上層 Modal 正下方」(z-index = 最上層 - 1), 最上層清楚顯示、其餘下層被壓暗,疊再多層也不會越疊越黑。 - 疊層/關層只改 z-index、不增減 DOM、opacity 維持不變 → 換層不閃爍。 - 退場一開始 (isPresent=false) 即注銷,遮罩同步下移到上一層或跟著淡出, 不再等退場動畫播完才跳;drawer z-index 保留到 unmount 以蓋住退場動畫。 - 登記改用 layout effect,避免開新層那一 frame 下層瞬間沒被壓暗。 可用 isSharedMask=false 回到每層各自渲染遮罩的舊行為。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.