Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: patch global scrollbar bug #250

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

Girishbari
Copy link
Contributor

Related Issue

Fix: #245

Description

Separated scrollbar class from body element to HTML element

Screenshots

Screenshot 2024-02-16 170518

Copy link

vercel bot commented Feb 16, 2024

Someone is attempting to deploy a commit to a Personal Account owned by @Sanchitbajaj02 on Vercel.

@Sanchitbajaj02 first needs to authorize it.

@github-actions github-actions bot added wait for reviewers SWOC S4 Social Winter of Code (S4) 2024 contribution tag labels Feb 16, 2024
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.

Great job, @Girishbari! 🎉 Thank you for submitting your pull request. Your contribution is valuable and we appreciate your efforts to improve our project. Keep being the part of the community!

'We will promptly review your changes and offer feedback. Keep up the excellent work!
Kindly remember to check our Contributing Guidelines'

Copy link
Contributor

coderabbitai bot commented Feb 16, 2024

Walkthrough

This update involves modifications to the RootLayout function within layout.tsx, specifically focusing on reordering and structuring HTML attributes in the <html> and <body> tags. These changes impact the class names and the placement of the suppressHydrationWarning attribute. The adjustments are aimed at enhancing the overall structure and potentially addressing specific layout or styling issues, such as those related to the customization of the scrollbar with Tailwind CSS as mentioned in the linked issue.

Changes

File(s) Change Summary
src/app/layout.tsx Updated order and structure of HTML attributes; modified class names and suppressHydrationWarning attribute placement

Assessment against linked issues

Objective Addressed Explanation
Bug: tailwind scrollbar property disabled (#245) The summary does not explicitly mention the Tailwind scrollbar property, making it unclear if the specific issue of the disabled scrollbar property has been addressed. Further review of the actual code changes related to class names might be necessary to confirm if the Tailwind scrollbar customization has been reinstated or improved.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share

Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit-tests for this file.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit tests for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository from git and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 13578a2 and d7315ad.
Files selected for processing (1)
  • src/app/layout.tsx (1 hunks)
Additional comments: 4
src/app/layout.tsx (4)
  • 51-56: The modifications to the <html> and <body> tags, including the reordering of attributes and the application of classes for scrollbar customization, align with the PR's objective to fix the global scrollbar issue. This change should ensure that the custom scrollbar styling provided by Tailwind CSS is correctly applied across all specified browsers. However, it's important to verify that these changes do not introduce any accessibility or usability issues, especially for users relying on keyboard navigation or screen readers.
  • 54-54: The suppressHydrationWarning attribute is used in the <html> tag. This is an unusual placement since this attribute is typically associated with suppressing hydration warnings in React components that might have differences between server-rendered and client-side content. Ensure that its usage here is intentional and does not inadvertently suppress important warnings that could help identify potential issues with mismatched server/client rendering.
  • 53-56: Applying the poppinsFont.className to both the <html> and <body> tags, along with the scrollbar customization classes to the <html> tag, is a strategic approach to ensure consistent font and scrollbar styling across the application. This change is crucial for addressing the scrollbar issue and enhancing the overall user experience. However, it's recommended to test these changes across the specified browsers (Chrome, Safari, Microsoft Edge, and Brave) to confirm that the scrollbar behaves as expected without any unintended side effects.
  • 48-59: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [5-5]

The commented-out import statements for react-toastify and its CSS file, replaced by the Toaster component from sonner, indicate a change in the notification system used by the application. While this change is not directly related to the scrollbar issue, it's important to ensure that the new Toaster component integrates well with the application and provides a comparable or improved user experience. Testing the notification functionality across different scenarios and browsers is recommended to confirm its effectiveness and user-friendliness.

@Sanchitbajaj02 Sanchitbajaj02 added 🪲 bug Something isn't working 🏆 good first issue Good for newcomers 🛠 goal: fix The label is related to fixing a bug ✨ goal: improve interface EASY Difficulty Level: Easy and removed wait for reviewers labels Feb 16, 2024
@Sanchitbajaj02 Sanchitbajaj02 merged commit 9c5136e into Sanchitbajaj02:master Feb 16, 2024
10 of 11 checks passed
Girishbari added a commit to Girishbari/palettegram that referenced this pull request Feb 18, 2024
Sanchitbajaj02 added a commit that referenced this pull request Feb 18, 2024
* refactor: solved the bug mentioned in #246

* feat: replaced react-toastify with sonner lib (#242)

* feat: new changes

* feat: replaced react-toastify with sonner

* feat: yarn file

* refactor: added requested changes

---------

Co-authored-by: Sanchit Bajaj <55249639+Sanchitbajaj02@users.noreply.github.com>

* feat: Form validation (#243)

* feat: add detailed footer section

* fix: form-validation bug

* fix: changed footer alignment (#239)

* fix: patch global scrollbar bug (#250)

* Random avatar generator for profiles #154 (#207)

Co-authored-by: Sanchit Bajaj <55249639+Sanchitbajaj02@users.noreply.github.com>

* refactor: patch navbar bug

* refactor: patch navbar bug 2

---------

Co-authored-by: Sanchit Bajaj <55249639+Sanchitbajaj02@users.noreply.github.com>
Co-authored-by: Monu <142221687+monoMonu@users.noreply.github.com>
Co-authored-by: Kom Senapati <komnoob123@gmail.com>
Co-authored-by: Amit Mishra <65525769+DaSeeker67@users.noreply.github.com>
Girishbari added a commit to Girishbari/palettegram that referenced this pull request Feb 19, 2024
Girishbari added a commit to Girishbari/palettegram that referenced this pull request Feb 19, 2024
* refactor: solved the bug mentioned in Sanchitbajaj02#246

* feat: replaced react-toastify with sonner lib (Sanchitbajaj02#242)

* feat: new changes

* feat: replaced react-toastify with sonner

* feat: yarn file

* refactor: added requested changes

---------

Co-authored-by: Sanchit Bajaj <55249639+Sanchitbajaj02@users.noreply.github.com>

* feat: Form validation (Sanchitbajaj02#243)

* feat: add detailed footer section

* fix: form-validation bug

* fix: changed footer alignment (Sanchitbajaj02#239)

* fix: patch global scrollbar bug (Sanchitbajaj02#250)

* Random avatar generator for profiles Sanchitbajaj02#154 (Sanchitbajaj02#207)

Co-authored-by: Sanchit Bajaj <55249639+Sanchitbajaj02@users.noreply.github.com>

* refactor: patch navbar bug

* refactor: patch navbar bug 2

---------

Co-authored-by: Sanchit Bajaj <55249639+Sanchitbajaj02@users.noreply.github.com>
Co-authored-by: Monu <142221687+monoMonu@users.noreply.github.com>
Co-authored-by: Kom Senapati <komnoob123@gmail.com>
Co-authored-by: Amit Mishra <65525769+DaSeeker67@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working EASY Difficulty Level: Easy 🛠 goal: fix The label is related to fixing a bug ✨ goal: improve interface 🏆 good first issue Good for newcomers SWOC S4 Social Winter of Code (S4) 2024 contribution tag
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: tailwind scrollbar property disabled
2 participants