Skip to content

Comments

Support icon shorthand for all widgets and menus#569

Merged
philippjfr merged 3 commits intomainfrom
icon_tokens
Feb 3, 2026
Merged

Support icon shorthand for all widgets and menus#569
philippjfr merged 3 commits intomainfrom
icon_tokens

Conversation

@philippjfr
Copy link
Contributor

@philippjfr philippjfr commented Feb 3, 2026

This PR adds first-class support for Material icons across all widget labels, Select options, and Menu items in panel-material-ui.

Icons can now be embedded directly in strings using the following syntax:

:material/zoom@size=large,color=warning:
  • material/zoom selects the Material icon
  • The @… section is optional
  • Supported modifiers include size, color, and other Material icon props

Why this matters

  • Enables richer, more expressive UIs without custom renderers
  • Keeps APIs declarative and string-based
  • Aligns icon usage across Panel and Material-UI components

Backwards compatibility

  • Fully backwards compatible
  • Plain text labels continue to work unchanged

This significantly improves visual affordances while keeping the API simple and uniform.

@codecov
Copy link

codecov bot commented Feb 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.18%. Comparing base (1d7d7b8) to head (30ce884).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #569   +/-   ##
=======================================
  Coverage   81.18%   81.18%           
=======================================
  Files          31       31           
  Lines        3168     3168           
=======================================
  Hits         2572     2572           
  Misses        596      596           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@philippjfr philippjfr merged commit cf8d52c into main Feb 3, 2026
20 checks passed
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.

1 participant