-
Notifications
You must be signed in to change notification settings - Fork 303
Fix Products dropdown transparency on Thousands of developers section #2743
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
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe pull request removes the devDependency "@sveltejs/adapter-node" from package.json. It also updates src/lib/components/ProductsSubmenu.svelte: the submenu container z-index is changed from Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. 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. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@src/lib/components/ProductsSubmenu.svelte`:
- Around line 233-239: Remove the dead duplicate background-color in the
ProductsSubmenu.svelte style block by deleting the first background-color:
`#000000` declaration so only background-color: `#232325` remains for
.products-dropdown-bg; also evaluate whether the :global(.products-dropdown-bg)
wrapper is necessary—if the class is only used inside this component, replace
:global(.products-dropdown-bg) with a local .products-dropdown-bg selector and
ensure the template applies that class to the element so Svelte's scoped CSS
handles it.
🧹 Nitpick comments (1)
src/lib/components/ProductsSubmenu.svelte (1)
115-115: Use a reasonable z-index value aligned with the project's scale.The
z-[9999]value is excessively high and isolated to this component. The project uses a z-index scale up toz-1000for overlays; usingz-[100]orz-[1000]would be more appropriate. The current value makes it difficult to layer other UI elements (modals, notifications, etc.) above or below the dropdown without further z-index conflicts.Proposed fix
- 'data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in relative !left-1/2 z-[9999] mx-auto mt-6 hidden w-full -translate-x-1/2 flex-col items-center p-0 outline-none [max-inline-size:86.875rem] md:flex' + 'data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in relative !left-1/2 z-[1000] mx-auto mt-6 hidden w-full -translate-x-1/2 flex-col items-center p-0 outline-none [max-inline-size:86.875rem] md:flex'
Fixes #11279
This PR adds an opaque background to the Products dropdown to prevent UI overlap on the “Thousands of developers” section.

Before
After

Summary by CodeRabbit
Chores
Style