Remove backdrop blur from modal overlays; dim only
Proposal
Drop the backdrop blur behind modal overlays (ol-dialog, ol-drawer, and the popover's mobile tray) and keep a plain dimming scrim.
Follow-up to #13728, which was mostly about button order but also flagged the blurred background.
Why
- Context behind a modal matters. We can't be sure every dialog or confirmation carries all the information needed to make the decision. Something on the page underneath often helps, and a blur hides it. A dim keeps it readable.
- The blur is a stylistic choice, not a convention. Open Library is a dense, data-heavy tool, often for people getting work done. A standard dim overlay fits that better.
Scope
- Remove
--overlay-backdrop-blur(static/css/tokens/borders.css) and its use inOlDialog.js,OlDrawer.js, and the popover tray. - Revisit
--overlay-backdrop-color. It was tuned light because the blur did the separating, so it may need to come up a little on its own. - Update the "blur follows modality" rule in
docs/ai/design.mdand the related code comments.
cc: @tfmorris
Context
- The scrim token pair lives in
static/css/tokens/borders.css#L69-L75. The current--overlay-backdrop-color: hsla(0, 0%, 0%, 0.32)/--overlay-backdrop-blur: 3pxpair, thedocs/ai/design.md"Blur follows modality" section, and the per-component blur usage this issue targets were all introduced together in the same merge, #13751 — this is very recent (yesterday). docs/ai/design.mdalready documents the rationale behind the current blur in detail:docs/ai/design.md#L290-L342. Notably it states: "The blur is what lets the dim stay light... Drop the blur and you inevitably compensate with more black." That section will need a substantive rewrite, not just removal of a mention of the blur token — it also documents a nested-modal case (docs/ai/design.md#L339-L342) that currently relies on the blur to keep stacked scrims reading as depth rather than a bug.- Usage sites beyond the two named in the issue's Scope:
OlDialog.js#L120-L121and the backdrop-filter rule atOlDialog.js#L156-L162— note the component already exposes--ol-dialog-backdrop-bluras a per-instance override with0documented as valid ("Set to0to dim without blurring",OlDialog.js#L57-L58), so a per-instance opt-out already exists even though no caller uses it.OlDrawer.js#L36-L39(JSDoc),OlDrawer.js#L78-L79, andOlDrawer.js#L132-L140.OlPopover.js's mobile tray atOlPopover.js#L195-L214— this is the file the issue body doesn't name a path for.- Unrelated:
OlDialog.jsalso calls a plainel.blur()on a form field during atouchmoveiOS-keyboard workaround (_blurOnScrollActive, aroundOlDialog.js#L757-L771). That's an unrelated use of "blur" (focus, not CSSbackdrop-filter) — worth not conflating when grepping the file for occurrences to remove.
- Direct origin: this is the explicit follow-up lokesh flagged in #13728 ("happy to hear more about reverting the blur for a simple scrim/dimmed overlay without a blur"), itself prompted by @tfmorris's report that blurring the author-merge page behind the confirmation dialog hid information needed to make the call. No duplicate or conflicting open issue/PR found searching for "blur".
Issue Assessment
Open questions
- What should
--overlay-backdrop-colorbecome? The issue's Scope says it "may need to come up a little" — butdesign.md's own existing rationale is more absolute: it says dropping the blur "inevitably" requires compensating with more black, since the blur is specifically what let the dim stay as light as 0.32. A concrete target value (or an explicit decision to keep 0.32 and accept more visible content underneath) would help whoever implements this. - Does the nested-modal compounding behavior documented at
design.md#L339-L342(a popover tray opened from inside a drawer stacks two scrims) still "read as depth rather than a bug" once there's no blur softening the second scrim? Worth a visual check once the new color is chosen, since the doc explicitly says this only works today "because the shared token is light."
Full triage checklist
- [x] Triage — correct labels applied or removed
- [x] Problem / opportunity — problem is clear, audience identified; grounded in a concrete incident (#13728)
- [x] Scope — well-scoped, single concern (backdrop blur only, not button order or dialog content)
- [x] Justification — reasoning stated (context behind modal matters, blur is non-conventional); not quantified with usage data, but reasonable for a design-system call
- [ ] Success & testing criteria — no explicit "done" definition (e.g. target dim value, visual QA steps) beyond "keep a plain dimming scrim"
- [x] Proposal & breakdown — concrete files and tokens named; actionable for a contributor
- [ ] If bug: environment & repro steps — n/a, not a bug report
- [x] Risks, concerns, open questions — surfaced above (color value, nested-modal compounding)
- [x] Richy context — relevant code, commits, PRs reviewed; no duplicate found
- [x] References — originating discussion (#13728) linked; no mockup for the new dim-only look
[!NOTE] This comment was automatically generated by Richy, Open Library's issue enrichment assistant, on behalf of @mekarpeles. This is NOT a sign-off. This issue needs lead review before work begins.
@lokesh I’d like to work on this issue if it’s open for contributions.
+1 to removing the blur. Open Library is a dense, data-heavy tool, and people often need the page underneath a dialog to make the call (the author-merge confirmation in #13728 is a good example). A blur hides exactly that information, while a plain dim keeps it readable. From a usability standpoint, I think a standard scrim is the better fit.
I'd also like to weigh in on the two open questions from the bot's assessment.
1. What should --overlay-backdrop-color become?
I agree with design.md that 0.32 was tuned around the blur, so keeping it as-is would probably make the modal feel under-separated from the page. I'd suggest starting at hsla(0, 0%, 0%, 0.40):
- It's a modest bump over 0.32, so the content underneath stays legible, which is the whole point of this change.
- It's easy to adjust. If 0.40 still feels too weak in review, 0.45 is the next step, but I'd avoid going much higher since that starts to defeat the readability goal.
I'm happy to put up a PR with side-by-side screenshots (dialog, drawer, mobile popover tray) at 0.32 / 0.40 / 0.45 so we can pick the value visually instead of guessing.
2. Nested modals (popover tray inside a drawer)
Stacked scrims compound: the combined opacity is 1 - (1 - a)^2. Roughly:
| Single scrim | Two stacked |
|---|---|
| 0.32 | ~0.54 |
| 0.40 | ~0.64 |
| 0.45 | ~0.70 |
So at 0.40 the nested case gets noticeably darker than today, and without the blur softening it, the second scrim may start to read as heavy rather than as depth. My suggestion:
- First, check the nested case visually at 0.40. ~0.64 may be perfectly acceptable.
- If it looks too heavy, rather than lowering the shared token, let the nested layer (e.g. the popover tray when opened from inside another overlay) use a lighter or transparent scrim, since the first scrim is already dimming the page.
I'd treat the design.md rewrite as part of the same PR: replace the "blur follows modality" rationale with the new reasoning (dim-only, content stays readable) and update the nested-modal paragraph to match whichever behavior we land on.
If this direction sounds good, I'd be glad to take it on. @lokesh does a starting value of 0.40 seem reasonable to you?