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

Non-Javascript accordion using details HTML tag? #38540

Open
2 tasks done
datvm opened this issue May 2, 2023 · 1 comment
Open
2 tasks done

Non-Javascript accordion using details HTML tag? #38540

datvm opened this issue May 2, 2023 · 1 comment
Labels

Comments

@datvm
Copy link

datvm commented May 2, 2023

Prerequisites

Proposal

Sorry if this is asked before it's really hard to search and I could only find #33268 but it's not the same.

Right now Accordion can only work with Javascript. Can we add styling for <details> and <summary> so it looks like Bootstrap Accordion? Thanks!

Motivation and context

  • Default <details> and <summary> are ugly but no Javascript needed.
  • Bootstrap Accordion doesn't support <details> yet (or I do not know how to make it work) and Javascript is needed.
@datvm datvm added the feature label May 2, 2023
@datvm
Copy link
Author

datvm commented Jun 8, 2023

Meanwhile, this is a workaround: https://stackoverflow.com/q/76153707/653457 to apply Accordion CSS to <details>/<summary>

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

No branches or pull requests

1 participant