Skip to content

Commit

Permalink
fix badge count size (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelfact authored Nov 20, 2024
1 parent 43d8868 commit cb4a2e5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ export function FilterButton({ onClick }: FilterButtonProps) {
}}
endContent={
filterCount ? (
<Badge size={"xxs"} color={filterCount ? "brand" : "grey"} variant={filterCount ? "solid" : "flat"}>
<Badge
size={"xxs"}
color={filterCount ? "brand" : "grey"}
variant={filterCount ? "solid" : "flat"}
shape={"rounded"}
classNames={{ base: "min-w-5 min-h-5" }}
>
{filterCount}
</Badge>
) : null
Expand Down
2 changes: 2 additions & 0 deletions shared/features/filters/accordion-filter/accordion-filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export function AccordionFilter({ selected, children, title, name, classNames }:
return {
children: selected.toString(),
color: selected ? "brand" : undefined,
shape: "rounded",
classNames: { base: "min-w-6 min-h-6" },
};
}

Expand Down

0 comments on commit cb4a2e5

Please sign in to comment.