-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Update group and partner selector hover styling #2950
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
Conversation
- Changed hover background color to `bg-subtle` - Increased border radius to `rounded-lg` - Reduced button size (px-2, py-1, h-8) for more compact appearance
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
WalkthroughUpdated CSS classes for the header-variant button in GroupSelector and PartnerSelector: adjusted padding, height, hover background, and border radius. No logic, data flow, or API changes. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ 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 |
Matching the group selector hover state
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
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
apps/web/ui/partners/partner-selector.tsx(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: build
| disabled, | ||
| className: | ||
| "w-full justify-start px-3 transition-none max-md:bg-bg-subtle hover:bg-bg-emphasis md:hover:bg-neutral-50 border-none", | ||
| "w-full justify-start px-2 py-1 h-8 transition-none max-md:bg-bg-subtle hover:bg-bg-subtle md:hover:bg-subtle border-none rounded-lg", |
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.
🧩 Analysis chain
Verify the bg-bg-subtle token validity.
The token bg-bg-subtle appears to have a redundant bg- prefix. Typically, design system tokens follow the pattern bg-subtle (as used in md:hover:bg-subtle on the same line). This looks like a typo or an invalid token that could cause incorrect styling.
If bg-bg-subtle is invalid, apply this diff to correct the token:
- "w-full justify-start px-2 py-1 h-8 transition-none max-md:bg-bg-subtle hover:bg-bg-subtle md:hover:bg-subtle border-none rounded-lg",
+ "w-full justify-start px-2 py-1 h-8 transition-none max-md:bg-subtle hover:bg-subtle md:hover:bg-subtle border-none rounded-lg",Run the following script to check if bg-bg-subtle is a valid token in your design system:
🏁 Script executed:
#!/bin/bash
# Description: Search for bg-bg-subtle token definition in the codebase and design system configs
# Search for token definitions in config files
echo "=== Searching for bg-bg-subtle in design system configs ==="
fd -e js -e ts -e json config tailwind theme | xargs rg -l "bg-bg-subtle"
# Search for other usages of this token
echo "=== Searching for other usages of bg-bg-subtle ==="
rg -n "bg-bg-subtle" --type ts --type tsx -g '!*.test.*'
# Search for similar bg-subtle token for comparison
echo "=== Searching for bg-subtle token usages ==="
rg -n "bg-subtle" --type ts --type tsx -g '!*.test.*' | head -20Length of output: 1385
🏁 Script executed:
#!/bin/bash
# Locate Tailwind config file(s)
echo "=== Locating Tailwind config files ==="
fd --ignore-case --full-path "tailwind.config" -t f
# Search for 'bg-bg-subtle' in config
echo "=== Searching for 'bg-bg-subtle' in Tailwind config ==="
fd --ignore-case --full-path "tailwind.config" -t f | xargs rg -n "bg-bg-subtle"
# Search for 'subtle' definitions in config colors
echo "=== Searching for 'subtle' in color definitions ==="
fd --ignore-case --full-path "tailwind.config" -t f | xargs rg -n "subtle"Length of output: 1280
Replace invalid bg-bg-subtle with bg-subtle
bg-bg-subtle isn’t defined in any Tailwind config; use bg-subtle instead (apps/web/ui/partners/partner-selector.tsx:118).
- max-md:bg-bg-subtle hover:bg-bg-subtle
+ max-md:bg-subtle hover:bg-subtle📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| "w-full justify-start px-2 py-1 h-8 transition-none max-md:bg-bg-subtle hover:bg-bg-subtle md:hover:bg-subtle border-none rounded-lg", | |
| "w-full justify-start px-2 py-1 h-8 transition-none max-md:bg-subtle hover:bg-subtle md:hover:bg-subtle border-none rounded-lg", |
🤖 Prompt for AI Agents
In apps/web/ui/partners/partner-selector.tsx around line 118, the class list
contains an invalid Tailwind class `bg-bg-subtle`; replace `bg-bg-subtle` with
the correct `bg-subtle` in that string so the background utility matches the
configured Tailwind token and styling will apply correctly (update any
occurrences on that line to use `bg-subtle`).
bg-subtlerounded-lgall groupsbuttonAfter

Before

Summary by CodeRabbit