Chalarangelo / furl

Functional react.js components.

Home Page:https://furl.netlify.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optimize Collapse content layout

Chalarangelo opened this issue · comments

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.