Skip to content

Commit 8b5c91d

Browse files
committed
active chip color change
1 parent 3d7fd4d commit 8b5c91d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ <h4 class="mb-2 text-xs font-semibold uppercase tracking-wide text-gray-500 dark
349349
{key:'community',label:'Community',count:bySource('community')},
350350
];
351351
const chip = (active) => 'flex w-full items-center justify-between rounded-xl px-3 py-2 text-sm transition '
352-
+ (active ? 'bg-gray-100 font-semibold dark:bg-white/10' : 'text-gray-600 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-white/5');
352+
+ (active ? 'bg-brand/15 text-brand ring-1 ring-brand/30 font-semibold dark:bg-white/10 dark:text-gray-100 dark:ring-0' : 'text-gray-600 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-white/5');
353353
const pill = 'rounded-full bg-gray-100 px-2 text-xs text-gray-500 dark:bg-white/5 dark:text-gray-400';
354354

355355
document.getElementById('sourceChips').innerHTML = sources.map(s=>

0 commit comments

Comments
 (0)