Last active
June 22, 2016 12:59
-
-
Save richjenks/fd215d77b7e566458dc0c6e14f00d6aa to your computer and use it in GitHub Desktop.
Bootstrap style to have hide/show content of collapse toggle based on current state
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[aria-expanded="false"] .collapse-opened, | |
[aria-expanded="true"] .collapse-closed { | |
display: none; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a role="button" data-toggle="collapse" href="#collapseId" aria-expanded="false" aria-controls="collapseId"> | |
<i class="fa fa-lg fa-caret-left collapse-closed"></i> | |
<i class="fa fa-lg fa-caret-down collapse-opened"></i> | |
</a> | |
<div id="collapseId" class="collapse"> | |
Content | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment