Skip to content
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

Remove nodes in pairs to avoid zebra stripe flashing #744

Open
jasonbarry opened this issue Oct 23, 2023 · 1 comment
Open

Remove nodes in pairs to avoid zebra stripe flashing #744

jasonbarry opened this issue Oct 23, 2023 · 1 comment

Comments

@jasonbarry
Copy link

If a table has zebra-style rows declared by :odd or :even CSS selectors, scrolling will remove nodes from the top of the DOM tree one-by-one, making the previously odd rows even and vice versa.

It would be nice if we could specify to remove nodes in pairs, so odd-numbered rows would stay odd, and even-numbered rows would stay even, as the user scrolled.

Otherwise, a zebra stripe flashing occurs on scroll.

@szszoke
Copy link

szszoke commented Mar 16, 2024

A workaround is to apply the even/odd styling based on the index.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants