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

Issue #7441 Enable non-list elements in Accordions #7469

Merged
merged 2 commits into from
Dec 11, 2015

Conversation

NeonArray
Copy link
Contributor

Fixes #7441 Instead of selecting an li element, I set the selector to accordion-item. I tested using nested div elements instead of a list and it worked correctly.

Instead of selecting an `li` element, I set the selector to `accordion-item`. I tested using nested div elements instead of a list and it worked correctly.
@zurbchris
Copy link
Contributor

See #7231
Would love to get this in before patch time.

If no list elements are returned initially, this checks for the presence of the data-accordion-item attribute.
@NeonArray
Copy link
Contributor Author

I've added an additional check for the data attribute in the logic. I have it first check for the list element and if zero are returned, then look for the attribute. I tested it using two separate accordion components, one using nested div and the other using ul and li

zurbchris added a commit that referenced this pull request Dec 11, 2015
Issue #7441 Enable non-list elements in Accordions
@zurbchris zurbchris merged commit 56fa0ef into foundation:develop Dec 11, 2015
@NeonArray NeonArray deleted the patch-3 branch December 12, 2015 18:32
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

Successfully merging this pull request may close these issues.

3 participants