Ensure facet filter gray box (in modal or facet browse page) doesn't …#3553
Merged
Ensure facet filter gray box (in modal or facet browse page) doesn't …#3553
Conversation
…appear if it's empty. Fixes #3552. - this area will be empty for facets configured with suggest: false - uses a simple :has CSS rule rather than complicate the template rendering
Contributor
Author
jrochkind
approved these changes
Apr 9, 2025
jcoyne
requested changes
Apr 10, 2025
| /* Facet browse pages & modals | ||
| -------------------------------------------------- */ | ||
| .facet-filters:not(:has(*)) { | ||
| display: none !important; |
Member
There was a problem hiding this comment.
Why does this have to be !important?
Contributor
Author
There was a problem hiding this comment.
Great question -- thanks for flagging that. It turns out, that is due to a related bug. The .facet-filters div is also a .card, and all .card elements get display: flex from Bootstrap CSS.
The generated application.css is currently putting the Bootstrap CSS after the Blacklight CSS (per this code), so the Bootstrap styles are taking precedence without !important.
I will create a bug ticket for that order issue, and a PR, then afterward I can rebase this PR and remove the !important.
jcoyne
approved these changes
Apr 10, 2025
This was referenced Apr 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




…appear if it's empty. Fixes #3552.