diff --git a/src/cosmoz-tab-card.js b/src/cosmoz-tab-card.js index f40ad56..b90272d 100644 --- a/src/cosmoz-tab-card.js +++ b/src/cosmoz-tab-card.js @@ -59,15 +59,16 @@ const CosmozTabCard = ({ heading, collapsable, isCollapsed, iconPath }) => { font-size: 17px; font-weight: 400; flex: 1; - margin: 0.67em 0 0; + margin-left: 4px; } .dropdown-arrow { - transform: rotate(-90deg); transition-duration: 0.3s; + display: block; + padding: 8px; } .dropdown-arrow[collapsed] { transition-duration: 0.3s; - transform: rotate(0); + transform: rotate(90deg); } @@ -75,17 +76,23 @@ const CosmozTabCard = ({ heading, collapsable, isCollapsed, iconPath }) => { ${when( collapsable, () => - html` setCollapsed((c) => !c)} - > - - ` + html` +
setCollapsed((c) => !c)} + class="dropdown-arrow" + > + + + +
+ ` )}

${heading} diff --git a/stories/cosmoz-tab-card.stories.js b/stories/cosmoz-tab-card.stories.js index 2b3d97d..c5e199b 100644 --- a/stories/cosmoz-tab-card.stories.js +++ b/stories/cosmoz-tab-card.stories.js @@ -21,7 +21,7 @@ const basics = () => html` -

+

Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Fusce non libero eget lorem interdum lacinia. Vivamus eu libero lacus. Vestibulum blandit ornare orci non imperdiet. Aliquam condimentum lacus mauris, id aliquet lectus faucibus vel. Aliquam luctus vulputate iaculis. Vestibulum eu sagittis nisi, sed gravida ante.