Skip to content

fix(widgets): GeocoderWidget dark theme colors (#9899)#9974

Merged
Pessimistress merged 5 commits intomasterfrom
claude/fix-deckgl-9899-xrY08
Feb 21, 2026
Merged

fix(widgets): GeocoderWidget dark theme colors (#9899)#9974
Pessimistress merged 5 commits intomasterfrom
claude/fix-deckgl-9899-xrY08

Conversation

@chrisgervang
Copy link
Collaborator

@chrisgervang chrisgervang commented Feb 1, 2026

Closes #9899

Replace hardcoded colors in GeocoderWidget and DropdownMenu with CSS
variables to properly support dark theme. The dropdown button, menu,
and input field now inherit colors from the theme system.

Screenshot 2026-02-20 at 3 13 31 PM Screenshot 2026-02-20 at 3 13 45 PM

Also improves the style of the current location item in the dropdown

https://claude.ai/code/session_01583bxG6ieS5bGfaVJUDuRY


Note

Medium Risk
Mostly UI/theming refactors, but it also changes geocoder dropdown behavior and adds async geolocation state handling that could affect widget interaction and rendering.

Overview
Fixes widget theming gaps by moving GeocoderWidget and its DropdownMenu styling from inline/hardcoded colors to stylesheet-driven class names that consume theme CSS variables, including new menu-specific variables.

Adds a richer dropdown model (MenuItem with optional icon) and updates the geocoder history dropdown to include a “Current location” item that triggers browser geolocation with a loading placeholder and error display.

Updates built-in themes and styling docs to expose the new --menu-* variables, and refreshes examples/tests to exercise geolocation-enabled geocoder usage.

Written by Cursor Bugbot for commit 9fcabef. This will update automatically on new commits. Configure here.

@coveralls
Copy link

coveralls commented Feb 1, 2026

Coverage Status

coverage: 91.06% (+0.004%) from 91.056%
when pulling 9fcabef on claude/fix-deckgl-9899-xrY08
into 9b4f613 on master.

@chrisgervang chrisgervang added this to the v9.3 milestone Feb 2, 2026
claude and others added 4 commits February 20, 2026 13:31
Replace hardcoded colors in GeocoderWidget and DropdownMenu with CSS
variables to properly support dark theme. The dropdown button, menu,
and input field now inherit colors from the theme system.

https://claude.ai/code/session_01583bxG6ieS5bGfaVJUDuRY
Move inline styles from GeocoderWidget and DropdownMenu components to
the stylesheet for better customizability. Users can now override these
styles via CSS without modifying the components.

https://claude.ai/code/session_01583bxG6ieS5bGfaVJUDuRY
- Apply glass effect (backdrop blur, shadows, rounded corners) to geocoder container
- Integrate input and dropdown button as a unified component
- Replace triangle icon with SVG chevron that rotates when open
- Hide dropdown button when history is empty
- Add updateHTML() call after geocode to re-render with updated history
- Use consistent system UI fonts for input and dropdown menu
- Add example usage of GeocoderWidget in widgets example

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…tion in example

- Style error message as themed popup below widget instead of breaking layout
- Enable geolocation option in widgets example

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@chrisgervang chrisgervang force-pushed the claude/fix-deckgl-9899-xrY08 branch from ae9b476 to 2c8a1a5 Compare February 20, 2026 21:32
… theme variables

- Add location pin icon to "Current location" dropdown option
- Show "Finding your location..." placeholder during geolocation
- Keep text field empty when using current location (not "current")
- Add dedicated menu CSS variables for independent menu theming
- Fix dropdown z-index to appear above other widgets
- Document new menu CSS variables in styling guide

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

}

.deck-widget .deck-widget-dropdown-item:hover {
background: var(--menu-item-hover, rgba(128, 128, 128, 0.15));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CSS fallback mismatch for menu item hover color

Low Severity

The CSS fallback value for --menu-item-hover is rgba(128, 128, 128, 0.15) in stylesheet.css, but the documentation in styling.md lists the default as rgba(0, 0, 0, 0.08), and the LightTheme in themes.ts also uses rgba(0, 0, 0, 0.08). When no theme is applied, users get a visually different hover color than documented.

Additional Locations (1)

Fix in Cursor Fix in Web

@Pessimistress Pessimistress merged commit 15b42d1 into master Feb 21, 2026
6 checks passed
@Pessimistress Pessimistress deleted the claude/fix-deckgl-9899-xrY08 branch February 21, 2026 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Geocoder Widget showing wrong color in dark theme

4 participants