Replies: 1 comment 2 replies
-
|
Doesn't it make more sense to use an accordion for that? I think you want a large accordion that is expanded by default and shows the current entry when it's scrolled out. Not sticky headers. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm very happy with the addition of
StickyHeaderContainerwhich it a great plus for the readability of long sorted lists.I've used it to create 'collapsable' containers (so you can collapse the sections under a sticky header if the content is not relevant). The code below extends the CN1 example code and it works overall quite well. E.g. you can collapse and expand any visible section.
But there is one edge case which I haven't found a solution for:
If you scroll up the A section half-way (so you can see the 'stuck' A header and a few of the A entries, screenshot 1 below) and then collapse A, it will keep the scroll and then show the B entries under Header A (screenshot 2).
What I would like to happen is that header A stays visible and that Header B scrolls up just below Header A (screenshot 3). This is what you'd expect when all A entries are hidden.
I've played around with all kinds of solutions, using notably manipulating the 'scroller' list but I haven't found anything that actually works.
Anyone who can see way to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions