icon: curated inline-SVG set with select param #96
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/deckle#96
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What to build
Replace the icon element's neutral placeholder with a real, dependency-free icon set, and constrain
icon.nameto it.Theme: ~16-24 stroke-style inline SVGs in a theme partial, tinted via
currentColor,aria-hiddenpreserved. Proposed list (adjust for drawing quality, keep names kebab-case): arrow-right, arrow-left, arrow-up, arrow-down, chevron-right, chevron-down, mail, phone, download, external, check, close, info, warning, search, calendar, location, clock, user, globe, heart, star, menu, document.Sidecar:
icon.yaml'snameparam becomestype: selectwithoptionslisting exactly the shipped names. Keep emittingce-icon--<name>/data-iconso forks can restyle or extend; a fork adding icons extends both the partial and the sidecar options.Existing content: any already-stored free-text name that matches a shipped name renders; a non-matching stored name must degrade gracefully (render nothing visible rather than a broken square) — note this in the sidecar comment.
Acceptance criteria
icon.nameis a select over exactly the shipped names; picker shows the listcurrentColor,aria-hidden="true"ce-icon--<name>anddata-iconoutput unchanged in shape for fork compatibilityBlocked by
None - can start immediately
Triage confirmed — enhancement, ready-for-agent. The issue body is the authoritative agent brief.
Verified against the codebase:
icon.yamlcurrently has free-textnameand its own comment documents thece-icon--<name>/data-iconfork contract this issue preserves; the theme ships a neutral placeholder inicon.html. The graceful-degradation rule for stale stored names covers the only migration concern. Icon list is adjustable for drawing quality per the body.