forked from DSpace/dspace-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request DSpace#2675 from atmire/multiline-search-filter-ba…
…dge_main Multiline selected facet badge on search page
- Loading branch information
Showing
5 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
8 changes: 5 additions & 3 deletions
8
src/app/shared/search/search-labels/search-label/search-label.component.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<a class="badge badge-primary mr-1 mb-1" | ||
<a class="badge badge-primary mb-1" | ||
[attr.aria-label]="'search.filters.remove' | translate:{ type: ('search.filters.applied.' + key) | translate, value: normalizeFilterValue(value) }" | ||
[routerLink]="searchLink" | ||
[queryParams]="(removeParameters | async)" queryParamsHandling="merge"> | ||
{{('search.filters.applied.' + key) | translate}}: {{'search.filters.' + filterName + '.' + value | translate: {default: normalizeFilterValue(value)} }} | ||
<span aria-hidden="true"> ×</span> | ||
<span class="d-flex"> | ||
<span class="flex-grow-1 text-left">{{('search.filters.applied.' + key) | translate}}: {{'search.filters.' + filterName + '.' + value | translate: {default: normalizeFilterValue(value)} }}</span> | ||
<span class="pl-1" aria-hidden="true">×</span> | ||
</span> | ||
</a> |
3 changes: 3 additions & 0 deletions
3
src/app/shared/search/search-labels/search-label/search-label.component.scss
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.badge { | ||
white-space: inherit; | ||
} |
This file contains 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
9 changes: 8 additions & 1 deletion
9
src/app/shared/search/search-labels/search-labels.component.scss
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
:host { | ||
line-height: 1; | ||
} | ||
.labels { | ||
margin: 0 calc(-1 * var(--bs-spacer)/8); | ||
ds-search-label { | ||
display: inline-block; | ||
padding: 0 calc(var(--bs-spacer)/8); | ||
} | ||
} | ||
} |
This file contains 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