Optimize Collapse content layout
Chalarangelo opened this issue · comments
Angelos Chalaris commented
Currently the Collapse
component is optimized to work with raw textual content. Its styles should be evaluated so that pretty much anything can be placed inside it and not look out of alignment.
One solution is to replace its default styling to use a <p>
element where raw content is right now, so that it will always use a paragraph if the passes content is a string
and also use a paragraph for the title
in the <summary>
element.