-
Notifications
You must be signed in to change notification settings - Fork 158
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
chore: Fix WalletDropdown hover bug #1156
Changes from all commits
343acc3
0d85bf0
fbcd0f0
916f5c4
a59b0bb
aa5853a
28ae28e
b4f4ad7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@coinbase/onchainkit": patch | ||
--- | ||
|
||
- **chore**: Remove the bottom WalletDropdown padding and instead apply the bottom padding directly on the WalletDropdownDisconnect component. This fixes a bug where the WalletDropdown bottom padding would unintentionally change on:hover. @cpcramer #1156 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,12 +19,12 @@ export function WalletDropdownDisconnect({ | |
type="button" | ||
className={cn( | ||
pressable.default, | ||
'relative flex items-center px-4 py-3', | ||
'relative flex items-center px-4 pt-3 pb-4', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add the extra bottom padding to the disconnect button. This matches the padding for the Identity component. |
||
className, | ||
)} | ||
onClick={handleDisconnect} | ||
> | ||
<div className="-translate-y-1/2 absolute top-1/2 left-4 flex h-[1.125rem] w-[1.125rem] items-center justify-center"> | ||
<div className="absolute left-4 flex h-[1.125rem] w-[1.125rem] items-center justify-center"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed these classes that were not needed with items-center |
||
{disconnectSvg} | ||
</div> | ||
<span className={cn(dsText.body, 'pl-6')}>{text}</span> | ||
|
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.
remove bottom padding for the dropdown