feat(ui): register favorite star and glyph-only actions

This commit is contained in:
Codex
2026-11-17 18:14:08 +03:00
parent 753d4d6edc
commit 3473cd9ef1
8 changed files with 21 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
# Favorites
Use the registered `star` icon in an IconButton with `aria-pressed`. The unset state is outline-only; the selected glyph uses `fill="currentColor"`. Keep the same hit target in both states. Place a card favorite action in its upper trailing corner, independent of opening the card. Persist the domain value at its owner; filtering favorites must not change it.
For a star without a surrounding disc, use `IconButton surface="none"`. The shared component owns the transparent surface and foreground; applications only position it. Keyboard focus and the hit target remain unchanged.