Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Filterable hiding listview items breaks zebra striping #6580

@jzaefferer

Description

@jzaefferer

I've got a filterable listview with some custom themeing, to apply zebra striping to the listview. When filtering the listview, items are hidden, but not removed, so the CSS selector still matches them, breaking the striping: http://jsbin.com/UKEQAj/2/edit (type "j" into the input to see the same colors next to each other)

I couldn't find any way to address this with CSS alone. Apparently there is no selector that would exclude hidden elements. Maybe I missed something though.

Assuming a JS solution is necessary, I need a way to hook into the filterable to apply odd/even classes after filtering. Filterable only provides a "beforefilter" event, which doesn't help me. Maybe adding another event to filterable is the answer here?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions