Closed andrewfan closed 5 years ago
how can we right the JSS for the below example :
<Collapsible trigger="Start here">
<p>This is the collapsible content. It can be any element or React component you like.</p>
</Collapsible>
CSS is:
.Collapsibletrigger { display: block; font-weight: 600; text-decoration: none; color: #ffffff; position: relative; border: 1px solid white; padding: 10px; background: #f3f4f4; color: black; } .Collapsibletrigger:after { font-family: 'FontAwesome'; content: '\f107'; position: absolute; right: 10px; top: 10px; display: block; transition: transform 300ms; } .Collapsibletrigger.is-open:after { transform: rotateZ(180deg); } .Collapsibletrigger.is-disabled { opacity: 0.5; background-color: grey; }
Can You please any one help me about this
styles for
a
andhover
are never appliedhttps://codesandbox.io/s/k37xj20yy3