Skip to content

Commit 3863b09

Browse files
authored
Merge pull request #1048 from timblais/bills-search
Bills search sidebar filter changes
2 parents efdf534 + beeeb75 commit 3863b09

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

components/search/SearchContainer.tsx

+10
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,14 @@ export const SearchContainer = styled.div`
134134
border-color: var(--bs-blue-100);
135135
color: var(--bs-blue);
136136
}
137+
138+
.ais-RefinementList-labelText {
139+
white-space: normal;
140+
display: inline-block;
141+
width: 75%;
142+
}
143+
144+
.ais-RefinementList-label {
145+
border-bottom: dashed 1px;
146+
}
137147
`

components/search/useRefinements.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ export const useRefinements = () => {
5454
searchablePlaceholder: "General Court",
5555
...baseProps
5656
}),
57+
useRefinementListUiProps({
58+
attribute: "currentCommittee",
59+
...baseProps,
60+
searchablePlaceholder: "Current Committee"
61+
}),
5762
useRefinementListUiProps({
5863
attribute: "city",
5964
searchablePlaceholder: "City",
@@ -68,11 +73,6 @@ export const useRefinements = () => {
6873
attribute: "cosponsors",
6974
...baseProps,
7075
searchablePlaceholder: "Cosponsor"
71-
}),
72-
useRefinementListUiProps({
73-
attribute: "currentCommittee",
74-
...baseProps,
75-
searchablePlaceholder: "Current Committee"
7676
})
7777
]
7878

0 commit comments

Comments
 (0)