Materialize: Collapsible only accept 1 paragraph?

Created on 25 Nov 2016  Â·  10Comments  Â·  Source: Dogfalo/materialize

Description

The collapsible content default styles are strange. If you put in 2

those are divided by a huge padding. Lists won't work at all. There are more problems with content styles in collapsible

Is this an intended behaviour?

Most helpful comment

All 10 comments

Can you please create a codepen that demonstrates the issue?

@suntrop Have you tried: https://codepen.io/tomscholz/pen/ZBxaPw ?

In times like these it is best to write some simple css to override our base style to whatever you choose.

@suntrop This happens cause of the styles associated with p beyond the collapsible. As suggested by @acburst please customize these elements with appropriate selectors

@acburst I think we can close this issue.

I already customised it. I just wanted you to know that there are issues with it. You can't always replace a paragraph with line breaks, especially when the content comes from a CMS.

We can place the padding on the .collapsible-body instead, that might be a good solution for this.

@Dogfalo I think the issue is sorted. Please close this ticket as well

Fixed in a0a09ca

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MickaelH974 picture MickaelH974  Â·  3Comments

ReiiYuki picture ReiiYuki  Â·  3Comments

ericlormul picture ericlormul  Â·  3Comments

heshamelmasry77 picture heshamelmasry77  Â·  3Comments

bradley-varol picture bradley-varol  Â·  3Comments