-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Added Hover effect on Sidebar rows #1463
Added Hover effect on Sidebar rows #1463
Conversation
Looks great! |
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.
Overall looks pretty good – just a few small changes.
Also, it looks like E2E tests are failing. They can be a bit flaky, so I would push the requested changes and if they're still failing then you might have to figure out what's going wrong |
Updated. |
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.
I'm not sure why optionHoveredStyle
needs to be a prop of the OptionsList
component. It looks like that prop is only used once, and we're passing a static value of styles.hoveredComponentBG
. So instead of:
- Passing
styles.hoveredComponentBG
fromOptionsSelector
toOptionsList
- Then passing it from
OptionsList
toOptionRow
We should just pass styles.hoveredComponentBG
from OptionsList
to OptionRow
. Does that make sense?
@roryabraham |
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.
Okay, LGTM 👍
Please review.
Details
Added existing Hoverable Component as a wrapper to the OptionRow Component and based on the hover state added a style with the Background color to show the feedback.
Now we have another prop on
OptionRow
componenthoverStyle
which takes value ofstyles.sidebarLinkHover
and this prop is set tostyles.modalLinkHover
on the common ancestor of all Sidebar modals(NewChat, NewGroup,SearchView)OptionSelector
.Fixed Issues
Fixes #1439
Tests
Open the app and hover over the sidebar rows to see the feedback.
Tested On
Web
screen-.3.mp4
Desktop
screen-.4.mp4