Skip to content

Conversation

@11Warrior
Copy link

@11Warrior 11Warrior commented Feb 10, 2026

This is a simple one word fix to the problem that was causing button flickering as expected when the mouse pointer is on the edge as well demonstrated in the issue #572 by simply the property (pointer-event-none) to make the second span(dark green span) unresponsive to any mouse pointer events like hover etc.

If this is the desired outcome then I think this is the correct fix. If the intent is to make the second span hoverable but be unresponsive during hovering state then the fix can be different.

Fixes #572

Summary by CodeRabbit

  • Bug Fixes
    • Improved interaction behavior of the "Learn More About Us" button to prevent unintended interactions with decorative elements, ensuring more intuitive user interaction.

@coderabbitai
Copy link

coderabbitai bot commented Feb 10, 2026

📝 Walkthrough

Walkthrough

The change adds pointer-events: none to a nested span within the "Learn More About Us" button to prevent pointer interactions on the decorative ribbon element, resolving hover flickering without altering the button's layout or structure.

Changes

Cohort / File(s) Summary
Button Hover Flicker Fix
src/pages/index.jsx
Adds pointer-events: none CSS property to decorative span element to prevent hover interaction conflicts and eliminate flickering effect on button hover.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A button that flickered with each hover near,
Now rests content, the flicker gone clear,
A ribbon that rests, no longer will poke,
With pointer-events: none—a simple fix spoke! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
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 (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly addresses the main change: fixing the flickering issue on the 'Learn More About Us' button on hover.
Linked Issues check ✅ Passed The PR successfully implements the required fix for issue #572 by adding pointer-events: none to prevent hover-triggered flickering on the button's decorative span.
Out of Scope Changes check ✅ Passed All changes are directly scoped to fixing the hover flickering issue on the 'Learn More About Us' button as specified in issue #572, with no unrelated modifications.

✏️ 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

No actionable comments were generated in the recent review. 🎉

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


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.

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.

Hover flickering on “Learn More About Us” button in light and dark mode

1 participant