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

Collapsible boxes #5

Open
stephan-koenig opened this issue Feb 9, 2023 · 3 comments
Open

Collapsible boxes #5

stephan-koenig opened this issue Feb 9, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@stephan-koenig
Copy link

Hi,

Is there an implementation of collapsible text boxes, for example as seen as on the FAQs of the UBC CLF website?

@joelpittet
Copy link
Member

Those can be details elements I think, I can get a style for them if one is not there. Here is a code snippet:

<h2>Our Programs</h2>
<details>
  <summary>What undergrad programs do you offer?</summary>
    <p>The following programs are available to students at the undergraduate level: Major, Combined Major, Double Major, Honours, Combined Honours, Cognitive Systems, and Software Engineering ... all with or without co-op options. Choosing any one of these will allow you to become well-versed in core computer science concepts while giving you the freedom to tailor your education to match your interests. We also offer a Bachelor of Arts (BA) Major in Computer Science and a Bachelor of Commerce (BCOM) Combined Major in Business and Computer Science. For specific program and option requirements, please see our Degree Programs page.</p>
 
</details>
<details>
  <summary>What is a Combined Major?</summary>
    <p>The Combined Major program enables students to combine computer science with other disciplines such as biology, microbiology &amp; immunology, physics, statistics or (with advisor approval) a science subject of the student's choosing.</p>
</details>

Here's what it would look like https://www.cs.ubc.ca/students/undergrad/faqs

Might be a bit different because I don't have that set of styles in yet but let me know if that would work for you?

@joelpittet joelpittet added the enhancement New feature or request label Feb 10, 2023
@stephan-koenig
Copy link
Author

Thanks for the explanation, Joël! Can you please assign @rloftus to it? (I will also Slack her to let her know.)

@joelpittet
Copy link
Member

@rloftus Would you like to give the details element a test in the other project and if it needs styling updates come here? I can add you as a collaborator to this theme project if you'd like to contribute upstream style changes

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

No branches or pull requests

2 participants