Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Living wiki of UI design patterns and best practices built with Fumadocs, Next.js, and Base UI components.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
rules/none-keyboard-navigation.md
1---2title: No Animation for Keyboard Navigation3impact: MEDIUM4tags: none, keyboard, a11y5---67## No Animation for Keyboard Navigation89Keyboard navigation should be instant, no animation.1011**Incorrect (animated focus):**1213```tsx14function Menu() {15return items.map(item => (16<motion.li17whileFocus={{ scale: 1.05 }}18transition={{ duration: 0.2 }}19/>20));21}22```2324**Correct (CSS focus-visible only):**2526```tsx27function Menu() {28return items.map(item => (29<li className={styles.menuItem} />30));31}32```33