Skip to content

feat(widgets): Replace custom SVG icons with Google Material Symbols - #10513

Merged
chrisgervang merged 2 commits into
masterfrom
chr/google-symbol-icons
Jul 31, 2026
Merged

chrisgervang merged 2 commits into
masterfrom
chr/google-symbol-icons

Conversation

@chrisgervang

@chrisgervang chrisgervang commented Jul 30, 2026 •

Copy link
Copy Markdown
Collaborator

For #10512

Before After
Screenshot 2026-07-29 at 5 43 04 PM Screenshot 2026-07-29 at 5 43 12 PM
Screenshot 2026-07-29 at 5 43 17 PM Screenshot 2026-07-29 at 5 43 22 PM

Background

The widget icons were Figma-modified SVGs of Google Material Symbols that were difficult to maintain and inconsistent with standard icon sets. This PR standardizes on Google Material Symbols and cleans up the CSS.

Change List

  • Replace all custom SVG icons with Google Material Symbols (opsz@24 variant) for fullscreen, zoom, screenshot, theme, reset view, and timeline widgets
  • Add --icon-size CSS variable (default 75%) for consistent icon padding control via mask-size
  • Remove all -webkit-mask-image vendor prefixes — unprefixed mask-image is supported in Safari 15.4+ (March 2022), and the range buttons already shipped without it
  • Add --icon-size to DeckWidgetTheme type and all 4 theme presets
  • Document --icon-size in the styling docs

Note

Low Risk
Visual-only widget CSS and theme variables; no runtime logic or security-sensitive paths. Minor risk for very old browsers that required -webkit-mask-image without unprefixed mask-image.

Overview
Replaces deck.gl widget button icons with Google Material Symbols (opsz@24) for fullscreen, zoom, screenshot, theme, reset view, and related controls, and simplifies how icons are drawn in CSS.

Icon styling: Shared .deck-widget-icon rules now set mask-size from the new --icon-size variable (default 75%), with centered mask-repeat / mask-position. Theme sun/moon defaults and docs point to light_mode / dark_mode symbols instead of add/remove. Reset view uses --icon-reset-view (previously reused --icon-camera).

CSS cleanup: Duplicated -webkit-mask-image declarations are removed across the stylesheet; unprefixed mask-image is relied on (Safari 15.4+).

Theming & docs: --icon-size is added to DeckWidgetTheme and all four built-in theme presets, and documented in the widgets styling API reference.

Reviewed by Cursor Bugbot for commit f4fac2a. Bugbot is set up for automated code reviews on this repo. Configure here.

Switch widget icons from hand-drawn SVGs to standardized Google Material
Symbols (opsz@24 variant). Add mask-size CSS variable (--icon-size) for
consistent icon padding control. Remove -webkit-mask-image vendor prefix
since unprefixed mask-image is supported in all modern browsers
(Safari 15.4+, March 2022).

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@coveralls

coveralls commented Jul 30, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 83.117% (-0.007%) from 83.124% — chr/google-symbol-icons into master

@chrisgervang
chrisgervang merged commit ba90cd2 into master Jul 31, 2026
6 checks passed
@chrisgervang
chrisgervang deleted the chr/google-symbol-icons branch July 31, 2026 00:30
@chrisgervang chrisgervang added this to the v9.4 milestone Aug 5, 2026
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.

3 participants