css-components icon indicating copy to clipboard operation
css-components copied to clipboard

Collapse: Suggest moving checkbox to allow increased styling possibilities

Open constructit opened this issue 8 years ago • 2 comments

Would it be ok to move the checkbox .collapse-open in front of .collapse-btn? By doing this it is possible to style .collapse-btn based on the open/closed state. For example background color, font weight or an icon as in the following example:

https://jsfiddle.net/mrgiao/2xfuwaLq/

constructit avatar Nov 19 '15 10:11 constructit

Make sense!

I'll make this change in the next release.

:D

Thanks!

felipefialho avatar Nov 19 '15 12:11 felipefialho

Same goes for radio buttons in the collapse with accordion. Move in front of .collapse-btn:

https://jsfiddle.net/mrgiao/ytxgysxy/

constructit avatar Nov 19 '15 12:11 constructit