Skip to content

style: custom scrollbar UI for better visual consistency (#1553)#1555

Merged
sanjay-kv merged 3 commits into
recodehive:mainfrom
Papia-tech:main
May 18, 2026
Merged

style: custom scrollbar UI for better visual consistency (#1553)#1555
sanjay-kv merged 3 commits into
recodehive:mainfrom
Papia-tech:main

Conversation

@Papia-tech
Copy link
Copy Markdown
Contributor

Added custom scrollbar styles for light and dark themes, including hover effects and Firefox fallbacks.

Description

This PR introduces a custom, slim, and modern scrollbar UI for the application to improve overall visual consistency across different pages. The new scrollbar dynamically adapts to both light and dark themes, featuring fully rounded edges and interactive hover states that match the platform's primary accent colors. It also includes comprehensive cross-browser fallbacks to ensure a uniform user experience on Chrome, Safari, Edge, and Firefox.
Fixes #1553

Type of Change

  • New feature (e.g., new page, component, or functionality)
  • Bug fix (non-breaking change that fixes an issue)
  • UI/UX improvement (design, layout, or styling updates)
  • Performance optimization (e.g., code splitting, caching)
  • Documentation update (README, contribution guidelines, etc.)
  • Other (please specify):

Changes Made

  • Global Scrollbar Sizing: Configured a consistent, elegant width (8px vertical / 10px horizontal) for Webkit-based browsers.
  • Light Theme Integration: Implemented a clean, transparent track with a soft grey thumb that transitions to the brand's active green color on hover.
  • Dark Theme Integration: Set up a transparent track with a sleek slate-colored thumb that shifts to the dark theme's primary accent/teal color on hover.
  • Firefox Fallback Support: Added scrollbar-width and scrollbar-color properties mapping directly to the theme configurations for parity in Firefox.
  • Cleanup: Fixed a minor syntax formatting issue at the bottom of custom.css to prevent style breakdown.

Dependencies

  • None (Pure CSS enhancement using standard pseudo-elements).

Checklist

  • My code follows the style guidelines of this project.
  • I have tested my changes across major browsers and devices
  • My changes do not generate new console warnings or errors .
  • I ran npm run build and attached screenshot(s) in this PR.
  • This is already assigned Issue to me, not an unassigned issue.

Added custom scrollbar styles for light and dark themes, including hover effects and Firefox fallbacks.
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 18, 2026

@Papia-tech is attempting to deploy a commit to the recode Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. The estimated time for response is 5–8 hrs.

In the meantime, please provide all necessary screenshots and make sure you run - npm build run , command and provide a screenshot, a video recording, or an image of the update you made below, which helps speed up the review and assignment. If you have questions, reach out to LinkedIn. Your contributions are highly appreciated!😊

Note: I maintain the repo issue every day twice at 8:00 AM IST and 9:00 PM IST. If your PR goes stale for more than one day, you can tag and comment on this same issue by tagging @sanjay-kv.

We are here to help you on this journey of open source. Consistent 20 contributions are eligible for sponsorship 💰

🎁 check our list of amazing people we sponsored so far: GitHub Sponsorship. ✨

📚Your perks for contribution to this community 👇🏻

  1. Get free Consultation use code recode50 to get free: Mentorship for free.

  2. Get the Ebook for free use code recode at checkout: Data Science cheatsheet for Beginners.

  3. Check out this weekly Newsletter: Sanjay's Newsletter.

If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@github-actions github-actions Bot added in-review The current changes are in review and would need approval and testing before merging level 1 10 points recode this is label for leaderboard labels May 18, 2026
@github-actions github-actions Bot added this to the recode:launch 3.0 milestone May 18, 2026
@github-actions github-actions Bot added Enhacement gssoc26 label gssoc:approved gssoc label type:design gssoc labels 10pts type:docs gssoc label 5pts labels May 18, 2026
@github-actions
Copy link
Copy Markdown

✅ Synchronized metadata from Issue #1553:

  • Labels: level 1, recode, Enhacement, gssoc:approved, type:docs, type:design
  • Milestone: recode:launch 3.0

@Adez017
Copy link
Copy Markdown
Member

Adez017 commented May 18, 2026

@Papia-tech it is a good practice to attached the screenshots when there is UI changes for a better review .

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
recode-website Ready Ready Preview, Comment May 18, 2026 0:44am

@sanjay-kv
Copy link
Copy Markdown
Member

@Papia-tech i see the scroll bar is disappeared . you can check the vercel preview

@Papia-tech
Copy link
Copy Markdown
Contributor Author

@Papia-tech i see the scroll bar is disappeared . you can check the vercel preview

Thanks for catching that! Setting the track background to transparent was causing it to clip and disappear.

I'm unable to verify the Vercel link directly because it gives me an "Access Required" screen @sanjay-kv @Adez017

Updated scrollbar styles for light and dark themes with improved visibility and contrast.
@github-actions
Copy link
Copy Markdown

✅ Synchronized metadata from Issue #1553:

  • Labels: level 1, recode, Enhacement, gssoc:approved, type:docs, type:design
  • Milestone: recode:launch 3.0

@Adez017
Copy link
Copy Markdown
Member

Adez017 commented May 18, 2026

@Papia-tech i see the scroll bar is disappeared . you can check the vercel preview

Thanks for catching that! Setting the track background to transparent was causing it to clip and disappear.

I'm unable to verify the Vercel link directly because it gives me an "Access Required" screen @sanjay-kv @Adez017

you can check the changes with local build @Papia-tech

Updated scrollbar styles for light and dark themes, adjusting dimensions and colors for better visibility.
@Papia-tech
Copy link
Copy Markdown
Contributor Author

I have corrected the scrollbar design, and it is now displaying properly on my localhost.
Please check it when you have time. @sanjay-kv @Adez017

Screenshot attached.

Screen.Recording.2026-05-18.155418.mp4

@github-actions
Copy link
Copy Markdown

✅ Synchronized metadata from Issue #1553:

  • Labels: level 1, recode, Enhacement, gssoc:approved, type:docs, type:design
  • Milestone: recode:launch 3.0

@Adez017
Copy link
Copy Markdown
Member

Adez017 commented May 18, 2026

I have corrected the scrollbar design, and it is now displaying properly on my localhost. Please check it when you have time. @sanjay-kv @Adez017

Screenshot attached.

Screen.Recording.2026-05-18.155418.mp4

@Papia-tech while switching the theme the cards went into an unexpected dual color behavior.
image

@Adez017
Copy link
Copy Markdown
Member

Adez017 commented May 18, 2026

I have corrected the scrollbar design, and it is now displaying properly on my localhost. Please check it when you have time. @sanjay-kv @Adez017

Screenshot attached.

Screen.Recording.2026-05-18.155418.mp4

@Papia-tech and what's the difference we can scroll the cards before hand also , i don't find any value with this PR .
CC: @sanjay-kv

@Papia-tech
Copy link
Copy Markdown
Contributor Author

I have corrected the scrollbar design, and it is now displaying properly on my localhost. Please check it when you have time. @sanjay-kv @Adez017
Screenshot attached.
Screen.Recording.2026-05-18.155418.mp4

@Papia-tech and what's the difference we can scroll the cards before hand also , i don't find any value with this PR . CC: @sanjay-kv

Hi @Adez017, the dual-color footer issue is actually a pre-existing issue on the main branch and was not introduced by this PR.
Scrolling was functional before as well, but the goal of this PR is to improve UI consistency with a more polished scrollbar design. If needed, I can open a separate issue to fix the dual-color footer issue.

@Adez017
Copy link
Copy Markdown
Member

Adez017 commented May 18, 2026

@Papia-tech but i didn't able to detect how you had enhanced the scrollbar

@Papia-tech
Copy link
Copy Markdown
Contributor Author

@Adez017, the scrollbar enhancement is mainly visible on desktop/tablet views, as custom scrollbar styling may not appear consistently on mobile browsers.

@Adez017
Copy link
Copy Markdown
Member

Adez017 commented May 18, 2026

@Adez017, the scrollbar enhancement is mainly visible on desktop/tablet views, as custom scrollbar styling may not appear consistently on mobile browsers.

can you attach a video with both before changes and after changes?

@sanjay-kv sanjay-kv merged commit 15ef044 into recodehive:main May 18, 2026
5 checks passed
@sanjay-kv
Copy link
Copy Markdown
Member

@Adez017 i found the changes, basically a smaller scrollbar

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

Labels

Enhacement gssoc26 label gssoc:approved gssoc label in-review The current changes are in review and would need approval and testing before merging level 1 10 points recode this is label for leaderboard type:design gssoc labels 10pts type:docs gssoc label 5pts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Scrollbar UI for Better Visual Consistency

3 participants