Set a max-height for accordion children and add scroll

Hey there,

i’m just wondering if its possible to add a fix height to a accordion children and make the content scrollable like this:

Thanks in advance
Pierre

Hi Pierre,

Thanks for reaching out.
I would suggest you add a DIV element to the Accordion Content and add the content inside it. Then set height to the DIV element along with the X Overflow value to Auto.

image

Hope it helps.
Thanks

1 Like

Hi Tristup,

exactly what i was looking for - thanks a lot! The only thing now is that a user is not really aware of that the element is “scrollable”, any idea how to show the user that the content is scrollable? Is it maybe possible to show the scrollbar before scrolling?

Thanks in advance
Pierre

Hi Pierre,

The scrollbar will appear automatically once you open the Accordion Item. You can also add a notice that scroll to read the full document.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.