Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
In order to improve UX I want to collapse facet block if facet is inactive. At the moment it impossible with additional hooks and or custom JS code.
Proposed resolution
Expose facet state as "facet-active"/"facet-inactive" classes to the frontend.
Remaining tasks
- Patch - done
- Review
- Commit
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
TBD
Comment | File | Size | Author |
---|---|---|---|
#4 | facets-3057235-4.patch | 2.71 KB | RoSk0 |
#4 | facets-3057235-2-4-interdiff.txt | 1.4 KB | RoSk0 |
Comments
Comment #2
RoSk0Initial patch.
Comment #4
RoSk0Added new class to tests.
Comment #5
borisson_This seems like a good idea and I like the implementation.
Comment #7
borisson_Committed and pushed.