Skip to content

Commit 13c426b

Browse files
authored
Merge pull request #5030 from fedspendingtransparency/mod/dev-14211
DEV - 14211: Complete the Recipient Autocomplete Filter
2 parents ff419ae + b89f339 commit 13c426b

File tree

11 files changed

+820
-382
lines changed

11 files changed

+820
-382
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
.filter-item-wrap {
2+
3+
padding: rem(20) rem(32);
4+
5+
.checkbox-filter__wrapper {
6+
.checkbox-filter__list {
7+
list-style: none;
8+
padding: 0;
9+
font-size: $font-size-12;
10+
line-height: 1.5;
11+
12+
.checkbox-filter__item {
13+
margin-bottom: $global-margin;
14+
display: flex;
15+
align-items: flex-start;
16+
17+
&:last-of-type {
18+
margin-bottom: 0;
19+
}
20+
21+
input {
22+
@include usa-input-checkbox;
23+
margin: 0;
24+
border: solid rem(1) $gray-cool-20;
25+
width: rem(12);
26+
height: rem(12);
27+
min-width: rem(12);
28+
top: rem(3);
29+
30+
&:checked {
31+
background-color: $blue-50;
32+
border-color: $blue-50;
33+
}
34+
35+
&:checked:before {
36+
width: rem(4);
37+
height: rem(8);
38+
margin: rem(0) rem(3);
39+
}
40+
}
41+
42+
.checkbox-filter__item-label {
43+
margin: rem(1) 0 0 rem(6);
44+
color: $gray-80;
45+
46+
span.highlight {
47+
background-color: $yellow-10;
48+
}
49+
}
50+
}
51+
52+
.checkbox-filter__item.hidden {
53+
display: none;
54+
}
55+
}
56+
}
57+
}
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
.extent-competed-filter {
2+
3+
@import "elements/filters/_selectedFilterBtn";
4+
@import "mixins/selectedFilterWrap";
5+
6+
.autocomplete__input {
7+
padding-bottom: 0 !important;
8+
}
9+
10+
.filter-item-wrap {
11+
.clear-all__container {
12+
display: flex;
13+
justify-content: right;
14+
15+
.clear-all__button {
16+
background: none;
17+
color: $theme-color-1;
18+
margin: ($global-margin * 2) 0 0 0;
19+
padding: 0;
20+
font-size: $smallest-font-size;
21+
line-height: 1.5;
22+
}
23+
}
24+
25+
.loading-message-container {
26+
font-size: rem(30);
27+
text-align: center;
28+
margin-top: $global-margin;
29+
30+
.loading-message-container__text {
31+
font-size: 2rem;
32+
padding-bottom: 2rem;
33+
}
34+
}
35+
position: relative;
36+
37+
.checkbox-type-filter {
38+
position: absolute;
39+
overflow-y: scroll;
40+
background-color: #fff;
41+
z-index: 10;
42+
max-height: 400px;
43+
border: solid 1px $gray-cool-10;
44+
border-radius: 3px;
45+
min-width: 100%;
46+
47+
&.bottom-fade {
48+
ul.autocomplete-checkbox {
49+
li:last-child {
50+
mask-image: linear-gradient(to top, transparent, rgba(0, 0, 0, 1) 40px);
51+
}
52+
}
53+
}
54+
55+
ul.autocomplete-checkbox {
56+
list-style: none;
57+
list-style-type: none;
58+
padding: 0;
59+
margin: 0;
60+
min-width: 100%;
61+
62+
li {
63+
&.autocomplete-heading {
64+
font-size: $font-size-12;
65+
font-weight: $font-semibold;
66+
line-height: 1.5;
67+
text-align: left;
68+
color: $gray-90;
69+
padding: rem(4) rem(8);
70+
display: flex;
71+
justify-content: space-between;
72+
background-color: $gray-cool-3;
73+
74+
.toggle-all__button {
75+
background: none;
76+
color: $theme-color-1;
77+
padding: 0;
78+
margin: 0;
79+
font-size: $smallest-font-size;
80+
line-height: 1.5;
81+
}
82+
}
83+
84+
.primary-checkbox-type.single-item {
85+
padding-left: rem(8);
86+
text-transform: uppercase;
87+
88+
input {
89+
top: rem(4);
90+
}
91+
92+
.checkbox-item-label{
93+
color: $gray-90;
94+
font-size: $font-size-12;
95+
font-weight: $font-normal;
96+
line-height: rem(18);
97+
98+
span.bold-highlight {
99+
font-weight: $font-semibold;
100+
font-style: normal;
101+
}
102+
}
103+
104+
105+
}
106+
107+
}
108+
}
109+
}
110+
}
111+
}

src/_scss/pages/search/filters/otherFilters/otherFilters.scss

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@
22
@import "elements/filters/_errorMessage";
33
@import "elements/filters/_typeahead";
44
@import "elements/filters/_selectedFilterBtn";
5-
@import "mixins/selectedFilterWrap";
65
@import './pages/award/_moreButton';
7-
8-
padding-left: rem(20);
9-
10-
&.searchV2 {
11-
padding-left: 0;
12-
}
6+
@import "components/search/_autocompleteCheckbox";
137

148
.shown {
159
min-height: rem(18);
@@ -23,7 +17,6 @@
2317
}
2418

2519
.selected-filters {
26-
@include selected-filter-wrap;
2720
margin-top: rem(20);
2821
}
2922

0 commit comments

Comments
 (0)