Skip to content

motion optimization, aria consistency & reduced motion support#5374

Merged
TheSkylancer merged 3 commits into
SandeepVashishtha:masterfrom
scriptedbyshivam:FaqCTA.jsx
Jun 2, 2026
Merged

motion optimization, aria consistency & reduced motion support#5374
TheSkylancer merged 3 commits into
SandeepVashishtha:masterfrom
scriptedbyshivam:FaqCTA.jsx

Conversation

@scriptedbyshivam
Copy link
Copy Markdown
Contributor

📝 Summary

This PR improves the FAQCTA component with performance optimizations, accessibility fixes, and cleaner documentation. 100% backward compatible with zero breaking changes.

✨ Safe to merge: No API changes, no new dependencies, no routing/config assumptions.

🔄 Type of Change

  • 🐛 Bug fix (ARIA inconsistency & motion re-render)
  • ♿ Accessibility enhancement (WCAG 2.1 AA alignment)
  • ✨ New feature
  • 💥 Breaking change
  • ♻️ Code refactoring & cleanup

🛠️ Changes Made

⚡ Performance Optimization

- export default function FAQCTA() {
-   const MotionLink = motion(Link); // ❌ Created on every render
-   ...
- }
+ const MotionLink = motion(Link); // ✅ Module-level, memoized
+ export default function FAQCTA() { ... }

Closes #5373

@scriptedbyshivam
Copy link
Copy Markdown
Contributor Author

@TheSkylancer
@SandeepVashishtha
please merge it

@scriptedbyshivam
Copy link
Copy Markdown
Contributor Author

@TheSkylancer
please merge it

@scriptedbyshivam
Copy link
Copy Markdown
Contributor Author

@Anushreebasics
please also merge this

@TheSkylancer
Copy link
Copy Markdown
Collaborator

@scriptedbyshivam join discord

@TheSkylancer TheSkylancer merged commit c678707 into SandeepVashishtha:master Jun 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve FAQCTA Component - Performance & Accessibility

2 participants