Skip to content

Commit

Permalink
Merge pull request #62 from CityOfPhiladelphia/search-redesign
Browse files Browse the repository at this point in the history
feedback changes
  • Loading branch information
RitikaDesai98 authored Jun 24, 2024
2 parents 4ddf613 + 02feff8 commit 5641570
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions src/ServicesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@
>
</div>
<div class="filter-summary">
<span
v-if="options.searchValue.length > 0 || checkedItems.length > 0"
class="result-summary"
>
Showing {{ totalResultsCount }} results out of {{ totalServicesCount }} in <b><em>Services</em></b><span v-if="options.searchValue.length > 0"> for <b><em>"{{ options.searchValue }}"</em></b></span>
<span class="result-summary">
<span v-if="hasResults()">
Showing {{ totalResultsCount }} results out of {{ totalServicesCount }} records <span v-if="checkedItems.length > 0 || options.searchValue.length > 0"> for </span><span v-if="options.searchValue.length > 0"><b><em>"{{ options.searchValue }}"</em></b></span>
</span>
<span v-else>
No results for <b><em>"{{ options.searchValue }}"</em></b>
</span>
</span>
<span v-if="checkedItems.length > 0">
<button
Expand All @@ -77,10 +79,10 @@
@click="clearFilter(item)"
>
{{ item }}
<i class="far fa-times" />
<i class="fa-solid fa-xmark"></i>

Check warning on line 82 in src/ServicesList.vue

View workflow job for this annotation

GitHub Actions / Build files

Require self-closing on HTML elements (<i>)
</button>
</span>
<span v-if="checkedItems.length > 0">
<span v-if="checkedItems.length > 0 || options.searchValue.length > 0">
<input
type="submit"
class="clear-button"
Expand Down Expand Up @@ -158,11 +160,6 @@
</div>
</template>
</template>
<template v-else>
<div class="nothing-found h3">
{{ $t("No results") }}
</div>
</template>
</div>
</div>
</template>
Expand Down Expand Up @@ -513,8 +510,9 @@ export default {
.filter-button{
margin: 0px 8px 8px 0px;
padding: 4px;
padding: 6px;
border-radius: 4px;
border: 2px solid transparent;
background-color: #cfcfcf;
color: #333333;
line-height: normal;
Expand All @@ -523,12 +521,15 @@ export default {
cursor: pointer;
}
.filter-button:hover{
border-color: #2176d2;
}
.result-summary {
margin-right: 8px;
}
.clear-button{
margin: 0px 8px 0px 8px;
border: none;
background-color: transparent;
color: #0f4d90;
Expand Down

0 comments on commit 5641570

Please sign in to comment.