-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Update/site editor list view block hover #29005
Update/site editor list view block hover #29005
Conversation
Size Change: +171 B (0%) Total Size: 1.38 MB
ℹ️ View Unchanged
|
e7fa1de
to
f4b986b
Compare
f4b986b
to
40bb7ee
Compare
cc1950f
to
4574b84
Compare
Continuing the discussion from here #29103 (comment)
I spent some time mucking around with debouncing and implementing mouseenter alongside mouseout to explore how much more performant we could make the interactions (not much) |
@jeyip Thanks for moving the convo here! I'm sorry I didn't surface this PR sooner to avoid the duplication, but I kinda thought I was working on this alone... 😄 I'll ping some designers that may have some insights regarding the hover/highlight distinction: @shaunandrews @jameskoster @mtias |
I think we should generally use the "highlight" in these operations. (I used it for hovering/focusing on the parent block selector in the toolbar, and I think should be the exact same for the list view.) The other hover we have is meant to be used as a visual artefact (gray instead of blue) when just moving across the canvas. I think it should be restricted to that effect and don't be part of the redux store. |
@mtias To give some context to the issue at hand: the main Persistent List View PR (#28637) already uses the highlight to... highlight blocks when hovering on the List View items. In this PR we are figuring out how to do the opposite: highlight the List View item when hovering the block. There are three options, as far as I can see, and I'm not convinced by any of them. 😅
The way I see it, hover and highlight serve a very similar purpose, and their major difference is how they are triggered (mouseover or Redux action). |
Ah, yes, got it. I think we need to go with |
Description
How has this been tested?
Screenshots
Types of changes
Checklist: