Skip to content

Commit

Permalink
Merge pull request #1243 from danskernesdigitalebibliotek/make-filter…
Browse files Browse the repository at this point in the history
…s-into-a-list

Make filters into a list
  • Loading branch information
spaceo authored Jun 11, 2024
2 parents 0ff4cfa + 39ba0c4 commit a4cafed
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/components/facet-browser/FacetBrowserModalBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const FacetBrowserModalBody: React.FunctionComponent<
/>
}
>
<div className="facet-browser__facet-group">
<ul className="facet-browser__facet-group">
{values.map((termItem) => {
const { term } = termItem;

Expand All @@ -85,17 +85,19 @@ const FacetBrowserModalBody: React.FunctionComponent<
};

return (
<ButtonTag
key={term}
onClick={handleAddOrRemoveFilter}
selected={selected}
dataCy={`facet-browser-${name}-${term}`}
>
{termItem.term} {termItem?.score && `(${termItem.score})`}
</ButtonTag>
<li>
<ButtonTag
key={term}
onClick={handleAddOrRemoveFilter}
selected={selected}
dataCy={`facet-browser-${name}-${term}`}
>
{termItem.term} {termItem?.score && `(${termItem.score})`}
</ButtonTag>
</li>
);
})}
</div>
</ul>
</DisclosureControllable>
);
})}
Expand Down

0 comments on commit a4cafed

Please sign in to comment.