Commit 6580abb
authored
feat(a2ui): normalize icon names to Material Symbols ligatures (camelCase → snake_case) (#725)
A2UI catalogs commonly emit camelCase icon identifiers (accountCircle,
shoppingCart, moreVert) while Material Symbols ligatures are snake_case. The
Icon component now converts the name before rendering so the existing A2UI
icon vocabulary renders as real glyphs (not raw text). Single-word /
already-snake_case names + emoji pass through unchanged; the original name is
kept as the aria-label. Verified live in examples/chat (A2UI mode): an Account
card renders account_circle / shopping_cart / settings / notifications / star
glyphs.1 parent cbe12f4 commit 6580abb
2 files changed
Lines changed: 40 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
5 | 19 | | |
6 | 20 | | |
7 | 21 | | |
| |||
12 | 26 | | |
13 | 27 | | |
14 | 28 | | |
15 | | - | |
| 29 | + | |
16 | 30 | | |
17 | 31 | | |
18 | 32 | | |
| |||
56 | 70 | | |
57 | 71 | | |
58 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
59 | 76 | | |
0 commit comments