Skip to content

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
    • Improved hover effects across interactive elements by adding background color transitions alongside shadow effects for better visual feedback during user interaction.

✏️ Tip: You can customize this high-level summary in your review settings.

@netlify
Copy link

netlify bot commented Jan 3, 2026

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit dc07c6a
🔍 Latest deploy log https://app.netlify.com/projects/asyncapi-website/deploys/69595e18e8812800085d817e
😎 Deploy Preview https://deploy-preview-4870--asyncapi-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 3, 2026

📝 Walkthrough

Walkthrough

These changes add missing hover background color effects to two button components (Feedback and GitHubIssue) to provide consistent visual feedback when users hover over them, addressing inconsistent UI behavior across the site.

Changes

Cohort / File(s) Summary
Button Hover Effects
components/Feedback.tsx, components/buttons/GitHubIssue.tsx
Added hover background color effects to buttons. Feedback component's submit button now applies hover:bg-primary-400 alongside the existing shadow. GitHubIssue component's anchor element now includes hover:bg-gray-700 in its hover state.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A hop, a skip, through styles so neat,
Buttons now glow when mice compete,
Purple and gray in hover's light,
Consistency blooms—oh what a sight!
No more dull clicks, just vibrant cheer, 🎨✨

Pre-merge checks and finishing touches

✅ 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 clearly and concisely describes the main change: adding hover effects to feedback and issue buttons, which directly matches the changeset modifications.
Linked Issues check ✅ Passed The PR addresses all coding objectives from issue #4867 by implementing visible hover effects (background color changes) to the purple and dark/black buttons in Feedback and GitHubIssue components, restoring consistent UI behavior across the site.
Out of Scope Changes check ✅ Passed All changes are directly scoped to adding hover effects in the two components (Feedback.tsx and GitHubIssue.tsx) mentioned in issue #4867, with no extraneous modifications.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
✨ Finishing touches
  • 📝 Generate docstrings

📜 Recent 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.


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 (dc07c6a).

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

☔ 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

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

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.

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

2 participants