fix(web): UserMenu + CountryPicker dropdowns frosted (Tailwind v4 bug)
All checks were successful
Deploy to Production / deploy (push) Successful in 53s
All checks were successful
Deploy to Production / deploy (push) Successful in 53s
Same Tailwind-v4 bracket-arbitrary issue we hit on the marketing burger menu: bg-[--color-bg-elevated] compiles to `background-color: --color-bg-elevated` (no var() wrap → invalid color → transparent). Both dropdowns were rendering see-through against the dashboard. Switch both to the proven pattern: backdrop-blur-md class + inline style for backgroundColor + borderColor using color-mix() and explicit var(). 88% elevated-panel fill gives a clear frosted-glass look while keeping the menu items readable. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -111,7 +111,15 @@ export function CountryPicker({
|
||||
{open && (
|
||||
<div
|
||||
role="listbox"
|
||||
className="absolute left-0 right-0 top-full z-50 mt-1 overflow-hidden rounded-md border border-[--color-border] bg-[--color-bg-elevated] shadow-lg shadow-black/40"
|
||||
// Background + border via inline style for the same reason as UserMenu:
|
||||
// Tailwind v4's `bg-[--color-X]` bracket syntax produces invalid CSS,
|
||||
// so the dropdown was rendering transparent. Frosted glass via
|
||||
// backdrop-blur + 88% elevated-panel fill.
|
||||
className="absolute left-0 right-0 top-full z-50 mt-1 overflow-hidden rounded-md border shadow-lg shadow-black/40 backdrop-blur-md"
|
||||
style={{
|
||||
backgroundColor: 'color-mix(in oklab, var(--color-bg-elevated) 88%, transparent)',
|
||||
borderColor: 'var(--color-border)',
|
||||
}}
|
||||
>
|
||||
<div className="flex items-center gap-2 border-b border-[--color-border] px-2.5">
|
||||
<Search size={13} className="text-[--color-fg-subtle]" />
|
||||
|
||||
Reference in New Issue
Block a user