Skip to content

Remove facets control on mobile results view #14

@eeeschwartz

Description

@eeeschwartz

The mobile results view should hide the search facets and show the list of facilities. It's not too hard to make it work this way by removing the facets from the DOM, the issue is that the desktop view needs to keep the facets around on the results page.

Removing facets from the DOM also means it's impossible to go back to the questionnaire (currently we solve this by completely reloading the page to start the questionnaire over).

How to split logic for mobile v desktop?

When rendering the results page, jQuery calls show() on the facets which overrides media queries setting mobile facets to display:none. Perhaps after show() we can attach a class to the facets that has a media query that hides mobile? Not sure if it's an order of operations issue or what. Any thoughts welcome.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions