-
Notifications
You must be signed in to change notification settings - Fork 843
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
EuiInMemoryTable - re-rendering all table rows on row mouseover #441
Comments
this should be fixed in sass I think... right now it keeps the hover row in the state (while it really shouldn't) @snide mind looking into it? |
After looking closer at it, I don't think css/sass is enough. The main problem with this is that we currently need to keep track of the hovered row in the state as we change the rendering of the item actions based on that. There are two options I to resolve this I think:
|
I haven't looked too deep into this, but we definitely want to keep actions hidden until hover/focus so you don't overwhelm people. It's perfectly fine to handle this in CSS with something like the below. You'll want to use visibility/opacity instead of display so that it'll be accessible. tr:hover .myTableActions {
opacity: 0;
visibility: hidden;
}
tr:hover .myTableActions,
.myTableActions:focus
{
opacity: 1;
visibility: visible;
} |
:) I guess it can be handled in css... Awesome! (BTW, we're using opacity now for the exact same reasons) |
Updated my snippet. Focus would need to be on the button, not the row. But yeah, this can be CSS. |
EuiInMemoryTable - re-rendering all table rows on row mouseover. This causes enough of a performance problem to cause the dev tools to freeze up after a while
Table set-up
cc @uboness
The text was updated successfully, but these errors were encountered: