fix(web): respect glass opacity for dialog backdrops #29525
main fromrefs/pull/29525/head·opened View on GitHubProblem#
Setting Glass opacity to 100% disables shared glass blur, but dialog backdrops still apply a fixed 4px blur. Settings and Usage therefore keep filtering the window despite selecting the existing reduced-effects workaround.
Reproduced on a Windows computer using software rendering through the Microsoft Basic Render Driver.
Change#
Make shared web/desktop backdrops use none at 100% Glass opacity and restore their existing 4px blur below 100%. Dimming and defaults are unchanged. No new setting or native-mobile change.
Only the glass-opacity style writes are extracted into a small helper. The appearance subscription and typography startup remain in place.
Scope and approval#
Small, focused fix to the existing appearance setting. Related: #20269, whose closure comment recommends 100% Glass opacity as a workaround. This fixes the backdrop exception, not the broader feature request.
Verification#
- Verified the actual slider: before, 100% retained
blur(4px); after, 100% usesnone, 95% restoresblur(4px), and 100% disables it again. The reporter also tested the patched production UI in an isolated Windows desktop instance and confirmed it works. - From
apps\web,vp test run src\components\ui\dialog.browser.test.tsx src\hooks\useSettings.test.ts src\components\settings\TypographySettings.browser.test.tsx --project browser --project unitpassed (14 tests). The backdrop regression calls the production glass-style helper, covers initial 80%/100% opacity and repeated changes in light/dark modes, and checks computed filtering, override cleanup, and unchanged dimming. This is helper/stylesheet coverage, not a full app-startup subscription test; the slider behavior was checked manually above. - Headless performance results were mixed; no overall desktop speedup is claimed.
Additional checks (all passed)
From the repository root:
vp run --filter '@t3tools/web' typecheck
vp lint --report-unused-disable-directives apps\web\src\appearanceGlass.ts apps\web\src\appInit.tsx apps\web\src\components\ui\dialog.browser.test.tsx
vp fmt --check apps\web\src\appearanceGlass.ts apps\web\src\appInit.tsx apps\web\src\components\ui\dialog.browser.test.tsx
git diff --check
From apps\web:
vp build
Broad suites were not run.
Screenshots at 100% Glass opacity:
| Before: original 4px backdrop | After: backdrop filtering disabled |
|---|---|
The before screenshot reproduces the original backdrop CSS in the same isolated desktop test instance.
Recordings supplied by the reporter:
Blur enabled: Glass opacity 40%
https://github.com/user-attachments/assets/46251c25-598b-4bf0-9337-1067111a7d7e
Blur disabled: Glass opacity 100%
https://github.com/user-attachments/assets/2a7dd370-e0fe-430f-ad7d-49d6da81d9c0
These compare the two opacity settings, not before/after code versions at the same setting.
The machine name is redacted in the evidence. Recordings are muted and retain their original playback speed.
Model: GPT-6.1 Sol. Harness: acpRegistry.
- 1
- 2
Pushed01a7810
Sign in to join this conversation.