Skip to content

Conversation

@jagadish-7
Copy link
Contributor

@jagadish-7 jagadish-7 commented Jan 11, 2026

Description

Before
image

After

image

Related issue(s)

#4910

Summary by CodeRabbit

  • Style
    • Refined navigation icon sizing for improved visual consistency.
    • Increased and harmonized button padding and spacing to enhance tap targets, readability, and visual hierarchy.
    • Visual-only adjustments; no changes to behaviour, data, or public interfaces.

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

@netlify
Copy link

netlify bot commented Jan 11, 2026

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 49c222c
🔍 Latest deploy log https://app.netlify.com/projects/asyncapi-website/deploys/6963ec455e1e810008706626
😎 Deploy Preview https://deploy-preview-4931--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.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 11, 2026

📝 Walkthrough

Walkthrough

Styling adjustments in NewsroomBlogPosts: ArrowLeft and ArrowRight icon widths unified to w-6, and both Prev and Next navigation buttons' padding changed from px-4 py-1 to px-6 py-3. No functional or API changes.

Changes

Cohort / File(s) Summary
Newsroom UI Styling
components/newsroom/NewsroomBlogPosts.tsx
Unified ArrowLeft and ArrowRight icon widths to w-6; updated Prev and Next button padding from px-4 py-1 to px-6 py-3. Presentation-only changes; logic unchanged.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related issues

Poem

🐰 I nudged the arrows, made them twins of six,
Padding puffed like pillows—no more sizing mix.
Buttons march aligned across the blogland track,
A tiny hop of CSS, and everything's back. ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fix: arrow buttons sizing' directly and clearly summarizes the main change—updating arrow button sizes in the NewsroomBlogPosts component. It is concise, specific, and accurately reflects 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

📜 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 1b6e1e8 and 49c222c.

📒 Files selected for processing (1)
  • components/newsroom/NewsroomBlogPosts.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • components/newsroom/NewsroomBlogPosts.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). (5)
  • GitHub Check: Redirect rules - asyncapi-website
  • GitHub Check: Header rules - asyncapi-website
  • GitHub Check: Pages changed - asyncapi-website
  • GitHub Check: cypress-run
  • GitHub Check: Test NodeJS PR - windows-latest

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 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (c19b945) to head (49c222c).

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

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

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

🧹 Nitpick comments (1)
components/newsroom/NewsroomBlogPosts.tsx (1)

58-71: Consider adding aria-labels for screen reader users.

The navigation buttons rely solely on visual arrow icons. Adding aria-label attributes would help screen reader users understand their purpose.

♿ Proposed accessibility enhancement
 <button
   ref={prevElRef}
+  aria-label="Previous blog posts"
   className={`${buttonClass} ml-0 px-6 py-3 ${current === 0 ? 'cursor-not-allowed border-gray-200 bg-white text-gray-200' : 'border-secondary-500  bg-secondary-100 text-secondary-500  hover:bg-secondary-500 hover:text-white'}`}
   data-testid='Blog-Prev-button'
 >
   <ArrowLeft className='w-6' />
 </button>
 <button
   ref={nextElRef}
+  aria-label="Next blog posts"
   className={`${buttonClass} px-6 py-3 ${checkLastSnapIndex(current) ? 'cursor-not-allowed border-gray-200 bg-white text-gray-200' : 'border-secondary-500  bg-secondary-100 text-secondary-500  hover:bg-secondary-500 hover:text-white'}`}
   data-testid='Blog-Next-button'
 >
   <ArrowRight className='w-6' />
 </button>
📜 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 c19b945 and 1b6e1e8.

📒 Files selected for processing (1)
  • components/newsroom/NewsroomBlogPosts.tsx
🧰 Additional context used
🧠 Learnings (6)
📓 Common learnings
Learnt from: katara-Jayprakash
Repo: asyncapi/website PR: 4760
File: components/layout/GenericPostLayout.tsx:50-52
Timestamp: 2025-12-23T06:30:43.275Z
Learning: In the asyncapi/website repository, `GenericPostLayout` (components/layout/GenericPostLayout.tsx) is used for rendering about pages, not blog posts, even though it accepts a post typed as `IPosts['blog'][number]`. The type is reused for convenience. Blog posts use `BlogLayout.tsx` instead. When reviewing EditPageButton usage in GenericPostLayout, `contentType='about'` is the correct value.
📚 Learning: 2025-12-23T06:30:43.275Z
Learnt from: katara-Jayprakash
Repo: asyncapi/website PR: 4760
File: components/layout/GenericPostLayout.tsx:50-52
Timestamp: 2025-12-23T06:30:43.275Z
Learning: In the asyncapi/website repository, `GenericPostLayout` (components/layout/GenericPostLayout.tsx) is used for rendering about pages, not blog posts, even though it accepts a post typed as `IPosts['blog'][number]`. The type is reused for convenience. Blog posts use `BlogLayout.tsx` instead. When reviewing EditPageButton usage in GenericPostLayout, `contentType='about'` is the correct value.

Applied to files:

  • components/newsroom/NewsroomBlogPosts.tsx
📚 Learning: 2024-10-11T10:46:58.882Z
Learnt from: akshatnema
Repo: asyncapi/website PR: 3262
File: components/Avatar.tsx:35-44
Timestamp: 2024-10-11T10:46:58.882Z
Learning: In Next.js, when avoiding nested `<a>` tags due to hydration issues, use accessible non-link elements like `<button>` or `<span>` with appropriate roles, `tabIndex`, and event handlers to maintain accessibility and SEO.

Applied to files:

  • components/newsroom/NewsroomBlogPosts.tsx
📚 Learning: 2024-10-11T07:38:35.745Z
Learnt from: akshatnema
Repo: asyncapi/website PR: 3262
File: components/newsroom/FeaturedBlogPost.tsx:90-92
Timestamp: 2024-10-11T07:38:35.745Z
Learning: In Next.js, nested `<a>` tags cause hydration issues due to invalid HTML. To fix this, avoid nesting `<a>` tags by replacing inner `<a>` tags with non-interactive elements like `<span>`, and use click handlers to maintain interactivity if needed.

Applied to files:

  • components/newsroom/NewsroomBlogPosts.tsx
📚 Learning: 2024-10-11T11:32:30.226Z
Learnt from: akshatnema
Repo: asyncapi/website PR: 3262
File: components/navigation/BlogPostItem.tsx:95-119
Timestamp: 2024-10-11T11:32:30.226Z
Learning: In the `BlogPostItem` component (`components/navigation/BlogPostItem.tsx`), nesting `<a>` tags inside the parent `Link` component leads to hydration issues; therefore, we should avoid nesting `<a>` tags inside `Link` components in this component.

Applied to files:

  • components/newsroom/NewsroomBlogPosts.tsx
📚 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/newsroom/NewsroomBlogPosts.tsx
🧬 Code graph analysis (1)
components/newsroom/NewsroomBlogPosts.tsx (2)
components/icons/ArrowLeft.tsx (1)
  • ArrowLeft (7-17)
components/newsroom/swiper.tsx (1)
  • checkLastSnapIndex (27-39)
⏰ 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). (6)
  • GitHub Check: cypress-run
  • GitHub Check: Redirect rules - asyncapi-website
  • GitHub Check: Header rules - asyncapi-website
  • GitHub Check: Pages changed - asyncapi-website
  • GitHub Check: Test NodeJS PR - windows-latest
  • GitHub Check: Lighthouse CI
🔇 Additional comments (2)
components/newsroom/NewsroomBlogPosts.tsx (2)

63-63: LGTM! Consistent icon sizing.

The arrow icons now have uniform width (w-6), fixing the previous inconsistency and improving visual harmony between the navigation buttons.

Also applies to: 70-70


67-67: LGTM! Consistent button padding.

The next button padding now matches the previous button (px-6 py-3), ensuring both navigation controls have the same touch target size.

@asyncapi-bot
Copy link
Contributor

asyncapi-bot commented Jan 11, 2026

⚡️ Lighthouse report for the changes in this PR:

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

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

Signed-off-by: jagadish-7 <coderjagadish143@gmail.com>
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.

2 participants