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

  1. Patch - done
  2. Review
  3. Commit

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

TBD

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RoSk0 created an issue. See original summary.

RoSk0’s picture

Assigned: RoSk0 » Unassigned
Issue summary: View changes
Status: Active » Needs review
FileSize
1.3 KB

Initial patch.

Status: Needs review » Needs work

The last submitted patch, 2: factes-3057235-2.patch, failed testing. View results

RoSk0’s picture

Status: Needs work » Needs review
FileSize
1.4 KB
2.71 KB

Added new class to tests.

borisson_’s picture

Status: Needs review » Reviewed & tested by the community

This seems like a good idea and I like the implementation.

  • borisson_ committed 1518f25 on 8.x-1.x authored by RoSk0
    Issue #3057235 by RoSk0: Expose facet state to frontend
    
borisson_’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.