-
Notifications
You must be signed in to change notification settings - Fork 0
[CDX-355] Bugfix: Make arrows work without depending on Tailwind #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CDX-355] Bugfix: Make arrows work without depending on Tailwind #27
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes a bug where the left arrow icon pointed in the wrong direction when Tailwind styles were not imported. The fix replaces the CSS-rotation-based approach with a native SVG implementation.
Changes:
- Removed dependency on Tailwind's
rotate-180class for the left arrow icon - Implemented ArrowLeftIcon as a standalone SVG instead of a rotated ArrowRightIcon
- Updated vertical carousel rotation to use
rotate-90instead of-rotate-90
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/assets/icons/ArrowLeftIcon.tsx | Replaced CSS rotation logic with native left-pointing SVG arrow |
| src/components/carousel.tsx | Fixed vertical orientation rotation from -rotate-90 to rotate-90 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Code Review Results✅ StrengthsThe PR successfully removes the Tailwind CSS dependency for arrow icons by implementing native SVG icons, addressing the reported bug where arrows pointed incorrectly when styles weren't imported. 🚨 Critical Issues[File: // Current implementation:
stroke='#000'
// Recommended:
stroke='currentColor'This allows the icon to inherit the text color from its parent, making it themeable and accessible.
|
Alexey-Pavlov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you!
If a consumer doesn't import styles, left arrow points to the right. This PR removes that dependency
Before:

After:
