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

Allow hiding of all filters in a category #1371

Merged
merged 2 commits into from
Jul 15, 2021
Merged

Allow hiding of all filters in a category #1371

merged 2 commits into from
Jul 15, 2021

Conversation

jameshadfield
Copy link
Member

Expands the functionality of the sidebar filter badges to allow inactivation of all (active) filters in a category.

The choice was made to keep a sidebar badge "active" if any of its constituent filters was active. For example, if there were a mixture of 3 active and 2 inactive country filters (displayed at the top of the page), then the sidebar badge will be active and show "3 x country", with the option to inactivate those 3 filters, or remove all 5.

Closes #1358

Expands the functionality of the sidebar filter badges to allow inactivation of all (active) filters in a category.

The choice was made to keep a sidebar badge "active" if any of its constituent filters was active. For example, if there were a mixture of 3 active and 2 inactive country filters (displayed at the top of the page), then the sidebar badge will be active and show "3 x country", with the option to inactivate those 3 filters, or remove all 5.

Closes #1358
The sidebar background can change (via customisations). This forces the inactive state of a filter to have a white background. This was the expected behaviour, as previously inactive badges were only displayed on the main part of the page where the background was always white.
@emmahodcroft
Copy link
Member

This is super-awesome James!! I think this solves the problem perfectly, and it will amazing to be able to turn all on/off with one click to aid zooming around on the tree. I also think it pairs perfectly with #1372!

@jameshadfield jameshadfield merged commit c0ff4e4 into master Jul 15, 2021
@jameshadfield jameshadfield deleted the filters branch July 15, 2021 03:06
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.

Allow 'turn off' of all filters, not just individual ones
2 participants