Skip to content

fix: added hover effects to feedback & issue buttons#4870

Open
Gorachand-Senapati wants to merge 2 commits intoasyncapi:masterfrom
Gorachand-Senapati:fix/docs-feedback-hover
Open

fix: added hover effects to feedback & issue buttons#4870
Gorachand-Senapati wants to merge 2 commits intoasyncapi:masterfrom
Gorachand-Senapati:fix/docs-feedback-hover

Conversation

@Gorachand-Senapati
Copy link

@Gorachand-Senapati Gorachand-Senapati commented Jan 3, 2026

New Features:- Now the 2 buttons hover properly, as another buttons

Description
Fixes #4867

Added hover effects to the "Submit feedback" and "Create issue on GitHub" buttons in the Documentation pages (components/Feedback.tsx and components/buttons/GitHubIssue.tsx).

Related issue(s)
#4867

Screen.Recording.2026-01-03.234607.mp4

Summary by CodeRabbit

  • Style
    • Refined hover feedback for interactive elements: buttons and action links now use subtle background color changes (in addition to or replacing shadow effects) for clearer, more consistent visual feedback on hover.

@netlify
Copy link

netlify bot commented Jan 3, 2026

Deploy Preview for asyncapi-website failed.

Built without sensitive environment variables

Name Link
🔨 Latest commit 0277b72
🔍 Latest deploy log https://app.netlify.com/projects/asyncapi-website/deploys/698d5b2086bea400086f5cba

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@asyncapi-bot asyncapi-bot requested a review from ashmitjsg January 3, 2026 18:21
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 3, 2026

📝 Walkthrough

Walkthrough

Two button components had their hover behavior altered: the Feedback submit button now adds a lighter primary background on hover; the GitHubIssue anchor now uses a gray background on hover. No API or exported signatures changed.

Changes

Cohort / File(s) Summary
Button Hover Effects
components/Feedback.tsx, components/buttons/GitHubIssue.tsx
Adjusted hover styles: Feedback submit button adds hover:bg-primary-400 in addition to its shadow; GitHubIssue anchor replaces hover:shadow-lg with hover:bg-gray-700. No functional or signature changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 I nibble CSS till edges gleam,

Hover lights dance in a seamless stream,
Purple, gray, and primary hue,
A tiny hop makes interfaces new,
Cheerful clicks in a cleaner theme.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main changes: adding hover effects to the feedback and GitHub issue buttons, matching the actual code modifications in both components.
Linked Issues check ✅ Passed The pull request implements the required hover effects for the feedback and GitHub issue buttons, directly addressing issue #4867's requirement to restore visible hover effects on these two-color buttons in the Docs options pages.
Out of Scope Changes check ✅ Passed All changes are scoped to adding hover effects to the two affected button components; no unrelated modifications are present in the changeset.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

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

@codecov
Copy link

codecov bot commented Jan 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (18ec38f) to head (0277b72).
⚠️ Report is 60 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #4870   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines          798       796    -2     
  Branches       146       146           
=========================================
- Hits           798       796    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@asyncapi-bot
Copy link
Contributor

asyncapi-bot commented Jan 3, 2026

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 36
🟢 Accessibility 98
🟢 Best practices 92
🟢 SEO 100
🔴 PWA 33

Lighthouse ran on https://deploy-preview-4870--asyncapi-website.netlify.app/

Copy link
Contributor

@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.

Actionable comments posted: 0

Caution

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

⚠️ Outside diff range comments (1)
components/Feedback.tsx (1)

72-72: Add hover background color change for visual consistency.

The "Follow on GitHub" button at line 72 uses bg-black but only changes hover:shadow-lg on hover. The GitHubIssue button in the error state uses the same black background with hover:bg-gray-700 hover:shadow-lg, providing better visual feedback. Add hover:bg-gray-700 to this button for consistent hover behavior across all black buttons.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 18ec38f and dc07c6a.

📒 Files selected for processing (2)
  • components/Feedback.tsx
  • components/buttons/GitHubIssue.tsx
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-12-29T14:21:28.216Z
Learnt from: sammy200-ui
Repo: asyncapi/website PR: 4804
File: components/navigation/Filter.tsx:32-41
Timestamp: 2025-12-29T14:21:28.216Z
Learning: In the asyncapi/website repository, when you intentionally omit dependencies in React hooks (e.g., useEffect, useMemo), add an eslint-disable comment with an explanatory note above the line to justify the design choice. For example: // eslint-disable-next-line react-hooks/exhaustive-deps: intentionally omitting dependencies to avoid unnecessary re-runs. This helps reviewers understand the rationale and keeps lint guidance informative.

Applied to files:

  • components/buttons/GitHubIssue.tsx
  • components/Feedback.tsx
⏰ Context from checks skipped due to timeout of 180000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Test NodeJS PR - windows-latest
  • GitHub Check: Lighthouse CI
🔇 Additional comments (2)
components/Feedback.tsx (1)

116-116: LGTM! Hover effect correctly implemented.

The addition of hover:bg-primary-400 provides the expected visual feedback when hovering over the submit button, transitioning from bg-primary-500 to a lighter shade. This correctly addresses the purple button hover issue mentioned in #4867.

components/buttons/GitHubIssue.tsx (1)

10-11: LGTM! Hover effect correctly implemented.

The addition of hover:bg-gray-700 provides the expected visual feedback when hovering over the GitHub issue button, lightening from bg-black to gray. This correctly addresses the dark/black button hover issue mentioned in #4867.

@Gorachand-Senapati
Copy link
Author

@princerajpoot20 Sir, please review this PR when you get some time.
If anything is not correct, I’ll be happy to make the required changes.

Thank you.

<a
className={`flex flex-row justify-center rounded bg-black py-2 text-white
shadow-md transition-all duration-500 ease-in-out hover:shadow-lg lg:w-6/12 ${className}`}
shadow-md transition-all duration-500 ease-in-out hover:bg-gray-700 hover:shadow-lg lg:w-6/12 ${className}`}
Copy link
Member

Choose a reason for hiding this comment

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

@Gorachand-Senapati do we really need to add hover 2 times? don't you think it is duplicated, and should be used only once.

Copy link
Author

Choose a reason for hiding this comment

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

@princerajpoot20 ok I fix it

Copy link
Author

Choose a reason for hiding this comment

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

@princerajpoot20 please Review the latest pr

@sonarqubecloud
Copy link

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

Labels

None yet

Projects

Status: To Be Triaged

Development

Successfully merging this pull request may close these issues.

Missing hover effect on two-color (Purple and Dark/Black) buttons in Docs options pages

3 participants