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

Add Accordion component #532

Merged
merged 15 commits into from
Dec 5, 2019
Merged

Conversation

ashmaroli
Copy link
Member

This is primarily to optimize the Sidebar component.
Currently, Sidebar is rendered fresh every time the "Collection" list-item accordion is opened and closed. Extracting into a separate component allows Sidebar to be rendered just once.

@ashmaroli ashmaroli marked this pull request as ready for review November 27, 2019 06:01
Copy link
Member

@mertkahyaoglu mertkahyaoglu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only 1 comment.

src/components/CounterAccordion.js Outdated Show resolved Hide resolved
@ashmaroli
Copy link
Member Author

The component has been rewritten to remove <li> and <a> tags entirely..

Co-Authored-By: Mert Kahyaoğlu <mertkahyaoglu93@gmail.com>
@ashmaroli
Copy link
Member Author

TODO: Currently, the parent component calculates the no. of items within the accordion and passes that down as props. Ideally, the count should be handled by <Accordion /> itself..

@ashmaroli ashmaroli merged commit bc8a1c8 into jekyll:master Dec 5, 2019
@ashmaroli ashmaroli deleted the accordion-component branch December 5, 2019 14:04
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.

2 participants