-
Notifications
You must be signed in to change notification settings - Fork 149
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
fix: update collectible hover icon, closes #4971 #5600
Conversation
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 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? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
dba5879
to
f68714d
Compare
f68714d
to
cc43751
Compare
height="30px" | ||
_hover={{ bg: 'ink.component-background-hover' }} | ||
/> | ||
<styled.div bg="ink.background-primary" padding="space.01"> |
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.
The padding space.01
is needed so that the button looks right however this means on hover there is a visible gap and difference in colour.
If I apply the _hover={{ bg: 'ink.component-background-hover' }}
to this wrapper then in light mode when you hover the button colour makes it look transparent as per #4971 .
I tried a few things here including negative margin but can't figure it out yet
@pete-watters I made a commit here, am I missing something or aren't the changes this simple? The cc @fabric-8 @markmhendrickson for design review here: ![]() ![]() |
Thanks @fbwoolf . This change doesn't give the icon itself a hover of The icon needs to look as we both made it but then on hover it should apply a colour effect of
Here is a video demonstrating it: @kyranjamie @alter-eggo maybe you have some ideas on how to solve this? |
Got it, I can fix that, np. I didn't see a hover to the icon in the designs so misssed that was the issue. You want to reassign the issue to me? Happy to fix that part. |
I think it makes more sense to change the IconButton itself so it can handle the icon hover? Still don't totally understand wrapping the icon here? |
Thanks @fbwoolf . The wrapping solution was a suggestion from Fab in his initial report: #4971 (comment) It works in that the icon doesn't disappear but then it has this spacing issue. With what I got released last time, the hover effect is working but it's using the old icon. I can re-assign to you. It's not an urgent thing to work on so no panic |
This PR:
Some more work is needed as on hover there is still as slight gap around the icon related to the button padding as you can see here:
https://github.com/leather-io/extension/assets/2938440/2dc6f147-9f18-4fe7-8804-55c922d36a51