Repository navigation
fix(web-ui): prevent WebKit backdrop loss and bleed-through on menus and phone drawer - #1276
Merged
Merged
Conversation
|
Caution Review failedThe pull request is closed.
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. |
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.
Summary
Fixes #1261
Addresses severe background bleed-through and broken frosted-glass rendering on WebKit / Safari across the mobile sidebar drawer, Composer
@delegation menu (MenuView), Harness selector dropdown (HarnessSelect->Menu), and otherMenuSurface/--dsw-specific-menuoverlays in both light and dark modes.Root Causes & Changes
apps/web-ui/packages/client/ui-theme/src/styles/design-platform.css):--dsw-menu-surface-fillfromrgba(248, 249, 250, 0.58)(light) /rgba(67, 69, 74, 0.45)(dark) torgba(248, 249, 250, 0.92)/rgba(48, 49, 54, 0.92)so menus stay legible even when WebKit cannot composite backdrop blur while keeping a subtle frosted tint consistent with--dsw-alias-menu-group-header-fill(0.94).--dsw-menu-surface-filloverrides under@media (prefers-reduced-transparency: reduce), (prefers-contrast: more).apps/web-ui/packages/client/ui-primitives/src/MenuSurface.module.css,Menu.module.css, and sibling--dsw-menu-backdrop-filteroverlays):-webkit-backdrop-filter: var(--dsw-menu-backdrop-filter)alongsidebackdrop-filteron.material(and-webkit-backdrop-filter: noneinMenu.module.css.phoneList), plus matching-webkit-backdrop-filterdeclarations onHoverCard,SubagentHeaderLineage,HostUsageDock,ContextMeter,TodoPanel, andQueueDock.isolation: isolateonMenuSurface.surface(andQueueDock.panel) withz-index: 0inside:where(.surface)/.panel: per CSS Filter Effects Level 2,isolation: isolatecreates a Backdrop Root that prevents childbackdrop-filterlayers from blurring page content behind the menu on WebKit/Safari, whereasz-index: 0still confines thez-index: -1material layer without creating a Backdrop Root..backingto@supports (position-anchor: --dsh-menu) and (width: anchor-size(width))andhtml[data-platform="darwin"]:not([data-tauri-shell])so browsers without CSS Anchor Positioning and the opaque Tauri WKWebView shell do not activate it.apps/web-ui/packages/client/ui-layout/src/client/AppFrame.module.css):.phoneDrawerfrosted surface fill from38%to92%(blur(24px) saturate(150%)) in both themes while preservingborder-radius: 0 28px 28px 0andcorner-shape: roundfrom fix(web): keep phone drawer backdrop blur aligned on WebKit #1080 so WebKit blur stays aligned with no bleed-through or offset strip.Validation
npx tsc -b packages/shared-contracts packages/desktop-controlnpm run build:web:ui(all 43 Web UI client plugins + browser shell built cleanly)npx prettier --checkon all 10 modified CSS filesSafari/605.1.15) and Chromium (Google Chrome) coveringMenuSurfaceand.phoneDrawerin both light and dark themes to confirm elimination of text overlap on WebKit and preserved frosted-glass appearance on Chromium.