Repository navigation
feat(widgets): Replace custom SVG icons with Google Material Symbols - #10513
Merged
Merged
Conversation
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]>
ibgreen
approved these changes
Jul 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For #10512
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
--icon-sizeCSS variable (default 75%) for consistent icon padding control viamask-size-webkit-mask-imagevendor prefixes — unprefixedmask-imageis supported in Safari 15.4+ (March 2022), and the range buttons already shipped without it--icon-sizetoDeckWidgetThemetype and all 4 theme presets--icon-sizein the styling docsNote
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-imagewithout unprefixedmask-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-iconrules now setmask-sizefrom the new--icon-sizevariable (default 75%), with centeredmask-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-imagedeclarations are removed across the stylesheet; unprefixedmask-imageis relied on (Safari 15.4+).Theming & docs:
--icon-sizeis added toDeckWidgetThemeand 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.