Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expanded by default #7

Open
jmls opened this issue Mar 19, 2015 · 5 comments
Open

expanded by default #7

jmls opened this issue Mar 19, 2015 · 5 comments

Comments

@jmls
Copy link

jmls commented Mar 19, 2015

is it possible to have a section expanded by default ?

awesome work, by the way.

@alexander-ruehle
Copy link
Owner

First of, thank you for your kind words.

Good idea, i will roll this out in the next version.

As a quick fix and workaround you can try to add the 'active' class to the collapse-card and add a style attribute to the collapse-card__body with display block. This would make on component expanded by default.

Example:

<div class="collapse-card active">
  <div class="collapse-card__heading">
    <div class="collapse-card__title">
      <i class="fa fa-question-circle fa-2x fa-fw"></i>
      title here
    </div>
  </div>
  <div class="collapse-card__body" style="display: block;">
    text here
  </div>
</div>

@jmls
Copy link
Author

jmls commented Mar 20, 2015

ohhh, close ;) thanks for the feedback - however there is a problem. When the form is first viewed, the card is indeed popped out - but with no content. click on the card to shrink, click again to expand, and it's all there. see below ;)

screenshot - 200315 - 08 47 20
screenshot - 200315 - 08 47 36

@alexander-ruehle
Copy link
Owner

Can you post your code here? I think you missed the style="display: block;" part on the .collapse-card__body

@jmls
Copy link
Author

jmls commented Mar 20, 2015

um, ah, well, cough

No, I didn't miss it out ... I had

<div class="collapse-card__body style="display: block;">

spot the deliberate mistake ;)

thanks again

@alexander-ruehle
Copy link
Owner

That explains a lot. ;)
Glad i could help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants