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

Create Accordion Control Without Panel Markup #16298

Closed
ascendantofrain opened this issue Apr 15, 2015 · 2 comments
Closed

Create Accordion Control Without Panel Markup #16298

ascendantofrain opened this issue Apr 15, 2015 · 2 comments
Labels

Comments

@ascendantofrain
Copy link

Is there any feasible way to create a bootstrap accordion control without having to use the 'panels' markup?? I have the collapse control working but I would like to be able to target parents for each section in the control.

In other words, I would like the "Revenue" and "Margin" buckets to toggle each other and inside of "Revenue" have "Revenue Current", "Revenue Base", and "Revenue Current vs. Base" toggle each other without disturbing the parent layers.

http://jsfiddle.net/ascendantofrain/e2t3xu81/2/

@twbs-lmvtfy
Copy link

Hi @ascendantofrain!

You appear to have posted a live example (http://fiddle.jshell.net/Lp903gc5/show/light/), which is always a good first step. However, according to the HTML5 validator, your example has some validation errors, which might potentially be causing your issue:

  • line 46, column 17 thru line 46, column 127: Attribute href not allowed on element span at this point.
  • line 46, column 17 thru line 46, column 127: Element span is missing one or more of the following attributes: role.
  • line 52, column 25 thru line 52, column 75: Attribute href not allowed on element span at this point.
  • line 79, column 25 thru line 79, column 75: Attribute href not allowed on element span at this point.
  • line 106, column 25 thru line 106, column 76: Attribute href not allowed on element span at this point.
  • line 156, column 17 thru line 156, column 128: Attribute href not allowed on element span at this point.
  • line 156, column 17 thru line 156, column 128: Element span is missing one or more of the following attributes: role.
  • line 162, column 25 thru line 162, column 76: Attribute href not allowed on element span at this point.
  • line 189, column 25 thru line 189, column 76: Attribute href not allowed on element span at this point.
  • line 216, column 25 thru line 216, column 76: Attribute href not allowed on element span at this point.

You'll need to fix these errors and post a revised example before we can proceed further.
Thanks!

(Please note that this is a fully automated comment.)

@cvrebert
Copy link
Collaborator

Duplicate of #10966.

Is there any feasible way to create a bootstrap accordion control without having to use the 'panels' markup??

Not currently. We hope to fix that in Bootstrap v4 though.

@cvrebert cvrebert added the js label Apr 15, 2015
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

3 participants