Skip to content

Updated “View 2024 Idea List” button hover + colors#583

Open
Abhishekmaurya12367 wants to merge 4 commits intoAOSSIE-Org:mainfrom
Abhishekmaurya12367:style/ideas-2024-button-hover
Open

Updated “View 2024 Idea List” button hover + colors#583
Abhishekmaurya12367 wants to merge 4 commits intoAOSSIE-Org:mainfrom
Abhishekmaurya12367:style/ideas-2024-button-hover

Conversation

@Abhishekmaurya12367
Copy link

@Abhishekmaurya12367 Abhishekmaurya12367 commented Feb 17, 2026

Addressed Issues:

Fixes #(issue number)

Screenshots/Recordings:

Additional Notes:

Checklist

  • My PR addresses a single issue, fixes a single bug or makes a single improvement.
  • My code follows the project's code style and conventions
  • If applicable, I have made corresponding changes or additions to the documentation
  • If applicable, I have made corresponding changes or additions to tests
  • My changes generate no new warnings or errors
  • I have joined the Discord server and I will share a link to this PR with the project maintainers there
  • I have read the Contribution Guidelines
  • Once I submit my PR, CodeRabbit AI will automatically review it and I will address CodeRabbit's comments.

⚠️ AI Notice - Important!

We encourage contributors to use AI tools responsibly when creating Pull Requests. While AI can be a valuable aid, it is essential to ensure that your contributions meet the task requirements, build successfully, include relevant tests, and pass all linters. Submissions that do not meet these standards may be closed without warning to maintain the quality and integrity of the project. Please take the time to understand the changes you are proposing and their impact.

Summary by CodeRabbit

  • New Features

    • Added a new X social media icon component for updated social branding
  • Style

    • Updated social links and accessibility labels to reflect X (Twitter) branding
    • Enhanced button styling across the app with improved hover, focus, and dark-mode support
    • Added subtle card hover/scale effects for richer visual feedback

Abhishekmaurya12367 and others added 2 commits February 3, 2026 20:32
Make the Ideas page CTA respond to hover with green in light mode and yellow in dark mode.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai
Copy link

coderabbitai bot commented Feb 17, 2026

📝 Walkthrough

Walkthrough

Adds a new XIcon SVG React component and replaces FontAwesome Twitter icons with this XIcon across the site. Also updates ARIA labels for the social link and expands Tailwind-based styling for several buttons and interactive card hover effects.

Changes

Cohort / File(s) Summary
Icon Component
src/components/XIcon.jsx
Adds new XIcon React component exporting XIcon({ className }) that renders an accessible SVG X icon (fill=currentColor, viewBox 0 0 24 24).
Twitter Icon Replacement
src/components/Footer.jsx, src/pages/index.jsx
Removes faTwitter usage and imports XIcon; replaces FontAwesomeIcon with XIcon and updates aria-labels to "Follow on X (Twitter)".
Button & Card Styling
src/pages/apply.jsx, src/pages/ideas/index.jsx, src/pages/ideas/2024/index.jsx
Expanded Tailwind utility classes for Link/CTA buttons (hover, focus-visible, dark-mode, responsive) and added transform/scale hover effects to article card containers.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 I stitched an X with tiny paws and cheer,
Swapped the bird for a mark that's bold and clear,
Buttons shimmer, cards now pop and play,
A little hop, and styles leap into day! ✨

🚥 Pre-merge checks | ✅ 1 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Title check ⚠️ Warning The PR title focuses on button hover and colors for the 2024 Idea List, but the changeset includes substantial unrelated changes: Twitter-to-X icon migration across multiple files, and styling updates to unrelated pages/components. Revise the title to reflect the full scope of changes, such as: 'Update idea cards hover effect and refactor social media links to X' or split into separate PRs for distinct feature changes.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (1 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
src/pages/ideas/index.jsx (2)

121-129: Consider extracting the repeated button class string into a shared constant or component.

This exact Tailwind class combination for CTA buttons is now duplicated across apply.jsx, ideas/index.jsx, and ideas/2024/index.jsx. A shared CtaLink component or a constant string would reduce duplication and make future style updates easier.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/pages/ideas/index.jsx` around lines 121 - 129, The CTA Link in
ideas/index.jsx duplicates a long Tailwind class string used in apply.jsx and
ideas/2024/index.jsx; extract this repeated style into a shared constant or
small presentational component (e.g., CtaLink) and replace the raw Link usage
with that constant/component to remove duplication; locate the Link with
className in ideas/index.jsx (and similar Link nodes in apply.jsx and
ideas/2024/index.jsx), move the class string into a reusable export (or create a
CtaLink that accepts href and children and applies the className) and update
each file to import and use the shared constant/component.

122-129: group and order-2 classes have no effect here.

  • group is present on Line 123 but no descendant uses group-hover: or similar group utilities — it's inert.
  • order-2 on the Link has no effect because its parent div (Line 121) is not a flex/grid container with multiple ordered children.

Both are harmless but add noise. Consider removing them for clarity, or they may have been carried over from another button's class list.

Proposed cleanup
             <Link
-              className="group order-2 mx-auto inline-flex items-center overflow-hidden rounded-lg bg-white px-8 py-3 font-mono font-semibold text-[`#00843D`] shadow-sm ring-1 ring-black/10 transition hover:bg-[`#00843D`] hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[`#00843D`] focus-visible:ring-offset-2 dark:bg-black dark:text-yellow-400 dark:ring-white/15 dark:hover:bg-yellow-400 dark:hover:text-black dark:focus-visible:ring-yellow-400 dark:focus-visible:ring-offset-2 dark:focus-visible:ring-offset-black"
+              className="mx-auto inline-flex items-center overflow-hidden rounded-lg bg-white px-8 py-3 font-mono font-semibold text-[`#00843D`] shadow-sm ring-1 ring-black/10 transition hover:bg-[`#00843D`] hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[`#00843D`] focus-visible:ring-offset-2 dark:bg-black dark:text-yellow-400 dark:ring-white/15 dark:hover:bg-yellow-400 dark:hover:text-black dark:focus-visible:ring-yellow-400 dark:focus-visible:ring-offset-2 dark:focus-visible:ring-offset-black"
               href="/ideas/2024"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/pages/ideas/index.jsx` around lines 122 - 129, The Link component
rendering "View 2024 Idea List" includes redundant Tailwind classes `group` and
`order-2` that have no effect; remove those tokens from the Link's className
string in the component that contains the Link to clean up unused classes (look
for the Link with href="/ideas/2024" and the span "View 2024 Idea List") unless
you intentionally need group behaviors or ordering—if so, add a corresponding
`group-*` descendant or make the parent a flex/grid container respectively.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@src/pages/ideas/index.jsx`:
- Around line 121-129: The CTA Link in ideas/index.jsx duplicates a long
Tailwind class string used in apply.jsx and ideas/2024/index.jsx; extract this
repeated style into a shared constant or small presentational component (e.g.,
CtaLink) and replace the raw Link usage with that constant/component to remove
duplication; locate the Link with className in ideas/index.jsx (and similar Link
nodes in apply.jsx and ideas/2024/index.jsx), move the class string into a
reusable export (or create a CtaLink that accepts href and children and applies
the className) and update each file to import and use the shared
constant/component.
- Around line 122-129: The Link component rendering "View 2024 Idea List"
includes redundant Tailwind classes `group` and `order-2` that have no effect;
remove those tokens from the Link's className string in the component that
contains the Link to clean up unused classes (look for the Link with
href="/ideas/2024" and the span "View 2024 Idea List") unless you intentionally
need group behaviors or ordering—if so, add a corresponding `group-*` descendant
or make the parent a flex/grid container respectively.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/pages/ideas/index.jsx (1)

17-28: ⚠️ Potential issue | 🟡 Minor

Conflicting transition declarations — scale hover won't animate.

The Tailwind classes transition-transform duration-200 set transition-property: transform, but the MUI sx prop on line 27 sets transition: 'background-color 0.3s ease', which is a shorthand that resets transition-property to only background-color. Because Emotion-generated styles typically win over Tailwind utilities in specificity, the transform scale will snap rather than animate.

Consolidate into a single declaration that covers both properties:

Proposed fix
-        className="dark:bg-[`#2A2A2A`] dark:border-white transform transition-transform duration-200 hover:scale-105"
+        className="dark:bg-[`#2A2A2A`] dark:border-white hover:scale-105"
         sx={{
           height: 350,
           borderRadius: 2,
           border: '1px solid',
           borderColor: '#3c982c',
           boxShadow: '0px 4px 4px `#00000040`',
           backdropFilter: 'blur(4px) brightness(100%)',
           display: 'flex',
           flexDirection: 'column',
-          transition: 'background-color 0.3s ease',
+          transition: 'background-color 0.3s ease, transform 0.2s ease',
         }}
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/pages/ideas/index.jsx` around lines 17 - 28, The element mixes Tailwind's
"transition-transform duration-200" with an MUI sx shorthand "transition:
'background-color 0.3s ease'", which overrides transition-property so the hover
scale won't animate; fix by consolidating transitions in the sx prop (or remove
the conflicting Tailwind class) so both transform and background-color are
animated, e.g. set the sx transition to include transform and background-color
(e.g., "transform 200ms ease, background-color 300ms ease") while keeping the
existing hover scale class.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@src/pages/ideas/index.jsx`:
- Around line 17-28: The element mixes Tailwind's "transition-transform
duration-200" with an MUI sx shorthand "transition: 'background-color 0.3s
ease'", which overrides transition-property so the hover scale won't animate;
fix by consolidating transitions in the sx prop (or remove the conflicting
Tailwind class) so both transform and background-color are animated, e.g. set
the sx transition to include transform and background-color (e.g., "transform
200ms ease, background-color 300ms ease") while keeping the existing hover scale
class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments