Repository navigation
feat(Icon): animated icons, and the components that use them - #616
Merged
Merged
Conversation
Icon takes animate and active: seventeen built-ins move with CSS alone, timed by the theme's border shape (foundations --icon-motion-* tokens), still under reduced motion. The icon data marks the moving parts (once-ui-system/icons feat/animated-icons). Accordion and Select flip their chevrons, Checkbox draws its tick in, NavIcon folds the menu icon, Button/IconButton/ToggleButton move hover icons, and Arrow (Button arrowIcon, Tag arrow) is the arrowRight icon with a CSS-only hover: no id or trigger needed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtxHFrRqCQVTTQQoYjG
…apshot Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtxHFrRqCQVTTQQoYjG
Member
Author
|
Visual check: the 80 changed shots are the intended change. Every Button with Generated by Claude Code |
# Conflicts: # packages/core/ai/bundles/app-shell.json
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtxHFrRqCQVTTQQoYjG
# Conflicts: # packages/core/ai/bundles/app-shell.json # packages/core/ai/bundles/app-shell.md # packages/core/ai/bundles/auth.md # packages/core/ai/bundles/chat.md # packages/core/ai/bundles/dashboard.json # packages/core/ai/bundles/dashboard.md # packages/core/ai/bundles/docs-page.md # packages/core/ai/bundles/editor.md # packages/core/ai/bundles/list-page.md # packages/core/ai/bundles/map-app.md # packages/core/ai/bundles/marketing-hero.md # packages/core/ai/bundles/page.md # packages/core/ai/bundles/pricing.json # packages/core/ai/bundles/pricing.md # packages/core/ai/bundles/roadmap.md # packages/core/ai/bundles/settings.md # packages/core/ai/components/Icon.json # packages/core/ai/spec.json # packages/core/bundle-size.json # packages/core/scripts/generate-icons.mjs # packages/core/src/components/Icon.tsx
12 tasks done
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.
Requested by Lorant · project thread
Hold for a minor release (3.2): this changes how Button's arrow, Accordion, Select, Checkbox and NavIcon look in motion. It also depends on icons#3 (approval needed before that merges).
What
Iconanimate/active. 17 built-ins move with CSS alone (check, checkbox, bell, plus, 4 chevrons, 4 arrows, refresh, eye, heart, trash, menu).animateuses the icon's own trigger (in,hover,active) or a named one;activeis the on state and implies animate. Others ignore both.--icon-motion-duration/-ease/-ease-out/-popon[data-border](playful 420ms overshoot, rounded 320ms, conservative 200ms no pop). Still under reduced motion (foundations' global rule) and with micro transitions off.@media (hover: hover)(nothing stuck after a tap); keyboard focus-visible on the control plays it everywhere.plusinto a cross unlessiconRotationis set (default changed from180to unset); Select flips its chevron; Checkbox draws its tick in when a person checks it (not on load); NavIcon draws the menu icon with the same motion; Button, IconButton and ToggleButton move bell/trash/refresh/eye/arrow icons on hover, ToggleButton passesselectedto heart/plus.arrowIcon, Tagarrow) is thearrowRighticon, CSS only. Chevron at rest, shaft grows in on hover/focus of the surrounding link/button/data-arrow-trigger. No id/trigger needed (a Button withoutidnever drew its arrow before), constant width so buttons no longer widen on hover.triggeris optional and still works.data-part,pathLengthonly; geometry unchanged).generate-iconsalso writessrc/icons/motion.ts. Native synced and strips the web-only attributes.Icon.motion,Arrow.trigger,Accordion.icon, CHANGELOG.apps/devproof page/icon-motion-proof: every motion in the three shapes.Checks
tsc --noEmitclean, full vitest suite passes (newicon-motion.test.tsx; NavIcon tests updated to the data attributes), lint gate below baseline.bundle-size.jsonupdated: the motion CSS adds ~1.6 KB gz to entries that include Icon. Arrow and NavIcon inline their paths so they don't pull the icon set./mnt/project-files/icons/motion/icon-motion-core.mp4(project files).Generated by Claude Code