Skip to content

Commit

Permalink
Fixed bug with coloring matches counter
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenthoms committed Sep 18, 2023
1 parent 4c86134 commit 5000b8b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,10 @@ export class Tag extends React.Component<TagProps> {
className={resolveClassNames(
"items-center text-white rounded-full h-5 justify-center mr-2 pl-1.5 pr-1.5 min-w-[5] flex outline-none relative text-center text-xs leading-none",
{
"bg-blue-700": matches <= this.props.maxNumSelectedNodes,
"bg-amber-600": matches > this.props.maxNumSelectedNodes,
"bg-blue-700":
matches <= this.props.maxNumSelectedNodes || this.props.maxNumSelectedNodes === -1,
"bg-amber-600":
matches > this.props.maxNumSelectedNodes && this.props.maxNumSelectedNodes !== -1,
}
)}
title={title}
Expand Down

0 comments on commit 5000b8b

Please sign in to comment.