Open Prathamesh-V-Kirad opened 1 week ago
The ScrollButton
component has been updated to improve its rendering logic. Previously, the button's visibility was conditional based on the backToTopButton
state, which could lead to multiple instances appearing on the page. The new implementation ensures the button is always rendered in the DOM, with its visibility and interactivity controlled through CSS classes, enhancing the component's structure.
File | Change Summary |
---|---|
components/buttons/ScrollButton.tsx | Modified rendering logic to always render the button, controlling visibility with CSS classes. |
Objective | Addressed | Explanation |
---|---|---|
Prevent multiple "Top of Page" buttons from appearing (3197) | ✅ |
ScrollButton
component regarding visibility and interactivity management through CSS.ready-to-merge
, bounty
🐰 In the land of scrolls, where buttons play,
A single friend will guide the way.
With CSS magic, it dances bright,
No more duplicates in sight!
So hop along, let's celebrate,
A tidy code, oh what a fate! 🌟
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?
Built without sensitive environment variables
Name | Link |
---|---|
Latest commit | 81acc9fada56a922e8d2b1b991b8f95d0eb6c16d |
Latest deploy log | https://app.netlify.com/sites/asyncapi-website/deploys/6734ce27689c920008d88fcb |
Deploy Preview | https://deploy-preview-3392--asyncapi-website.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
⚡️ Lighthouse report for the changes in this PR: | Category | Score |
---|---|---|
🔴 Performance | 46 | |
🟢 Accessibility | 98 | |
🟢 Best practices | 92 | |
🟢 SEO | 100 | |
🔴 PWA | 33 |
Lighthouse ran on https://deploy-preview-3392--asyncapi-website.netlify.app/
Description
ScrollButton.tsx
https://github.com/user-attachments/assets/4b387ec6-37be-4366-b89a-12472be3d3bc
Related issue(s)
Fixes #3197
Summary by CodeRabbit
ScrollButton
component for better visibility and interactivity as users scroll.