fix: restore priority color on PBI filter pill

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Janpeter Visser 2026-04-27 18:59:20 +02:00
parent dad9a80aa6
commit 5ab4889b04

View file

@ -32,6 +32,7 @@ import { reorderPbisAction, updatePbiPriorityAction } from '@/actions/stories'
import { cn } from '@/lib/utils'
import { PbiDialog, type PbiDialogState } from './pbi-dialog'
import { BacklogCard } from './backlog-card'
import { PRIORITY_COLORS } from '@/components/shared/priority-select'
const PRIORITY_LABELS: Record<number, string> = {
1: 'Kritiek',
@ -232,7 +233,7 @@ export function PbiList({ productId, pbis, isDemo }: PbiListProps) {
onClick={() => setFilterPriority(null)}
className="flex items-center gap-1 text-xs text-primary hover:underline"
>
<Badge className="text-xs">
<Badge className={cn('text-xs', PRIORITY_COLORS[filterPriority])}>
{PRIORITY_LABELS[filterPriority]}
</Badge>
<span>×</span>