-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Collapse Accordion is still using Panels #18375
Comments
You're right the accordion example still using panels |
This is related to an open TODO item for v4 (#17021):
|
I have tested v4 using Cards and this seems to function as expected, I do believe simply updating the documentation may be sufficient? |
Hi @adamreed90! You appear to have posted a live example (http://pastebin.com/Qruir6wj), 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:
You'll need to fix these errors and post a revised example before we can proceed further. (Please note that this is a fully automated comment.) |
The JavaScript for the accordion feature currently still assumes the usage of Panels; see Line 59 in c2cf58b
|
any plans to change that soon? |
Would be nice if accordion wasn't dependent on a component (ie. cards) and was just able to collapse/expand based on data-parent. |
I see this in collapse.js where it specifically is looking for the const Selector = {
ACTIVES : '.panel > .in, .panel > .collapsing',
DATA_TOGGLE : '[data-toggle="collapse"]'
} In my very brief testing I changed that to And I suppose to make better use of the variables that could be better written as: |
https://gist.github.com/ve3/06e276d566079f102d331f0ed398d5fa
Use this while waiting for the fix. I hope it help. |
#18400 was merged to address this. |
I did not want to open a new issue, but about @timalbert 's quote
Any reason why the accordion is card-dependent ? |
IMO it's an historical dependency because on V3 accordion depend on But see this : #17021 and you'll find that accordion won't depend on card at the end of the V4 |
Per the blog post for v4, Panels were to be removed and swapped for Cards?
http://v4-alpha.getbootstrap.com/components/collapse/
The example is using Panels?
The text was updated successfully, but these errors were encountered: