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

Feature request to pagefind-ui: wrap pagefind-ui__filter-panel fieldset in details+summary #781

Open
seezee opened this issue Feb 4, 2025 · 2 comments

Comments

@seezee
Copy link

seezee commented Feb 4, 2025

It would be nice if the user could hide all filters (or if they were hidden by default) so one could see the search results before filtering without scrolling.

This could be accomplished by wrapping the fieldset pagefind-ui__filter-panel in <details><summary>.

   <details>
   <h4>Toggle filters</h4>
     <summary>
       <fieldset class="pagefind-ui__filter-panel"> ... </fieldset>
     </summary>
   </details>
@endic-sam928281
Copy link

Hello, we tried to solve the issue.

This is what we did:

Wrapped the filter panel in a

element to allow hiding all filters by default. Added a toggle button to show/hide filters. Adjusted styling to maintain consistency with the existing design.

You can review changes in this commit: endic-sam928281@f4b2275.

[!CAUTION]
Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.


Latta AI seeks to solve problems in open source projects as part of its mission to support developers around the world. Learn more about our mission at https://latta.ai/ourmission . If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.

@seezee
Copy link
Author

seezee commented Feb 4, 2025

Cool. Will you be merging this commit?

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

No branches or pull requests

2 participants