fix: package sub-banner no longer blocks "connect" dropdown#2770
fix: package sub-banner no longer blocks "connect" dropdown#2770ptdewey wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe PR addresses a dropdown occlusion issue by lowering the package header's z-index from ChangesDropdown Occlusion Fix and Validation
Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
Hello! Thank you for opening your first PR to npmx, @ptdewey! 🚀 Here’s what will happen next:
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
| } | ||
| }) | ||
|
|
||
| test('AccountMenu dropdown items are clickable on package pages', async ({ page, goto }) => { |
There was a problem hiding this comment.
I think you can do something like this since you only need to check the center
test('AccountMenu dropdown items are clickable on package pages', async ({ page, goto }) => {
await goto('/package/vue', { waitUntil: 'hydration' })
await page.getByRole('button', { name: /^connect$/i }).click()
const items = page.getByRole('menuitem')
for (const item of await items.all()) {
await item.click({ trial: true })
}
})
🔗 Linked issue
Fixes #2747
🧭 Context
The "connect" dropdown menu items were obscured by the banner on the package page:
📚 Description
This change adjusted the z-index of the banner from z-50 to z-40 to ensure the dropdown is drawn above the banner.
As requested in #2747, I also added a new test case to catch regressions of this (it fails w/o
the change and passes with it).
Please let me know if there are any issues, thanks!