mirror of https://github.com/VERT-sh/VERT.git
fix: current category not highlighted
This commit is contained in:
parent
d20e99dee2
commit
14bf8c45ce
|
@ -234,10 +234,10 @@
|
||||||
<div class="flex items-center justify-between">
|
<div class="flex items-center justify-between">
|
||||||
{#each filteredData.categories as category}
|
{#each filteredData.categories as category}
|
||||||
<button
|
<button
|
||||||
class="flex-grow text-lg text-muted hover:text-muted/20 border-b-[1px] pb-2 capitalize
|
class="flex-grow text-lg hover:text-muted/20 border-b-[1px] pb-2 capitalize {currentCategory ===
|
||||||
{currentCategory === category
|
category
|
||||||
? 'text-accent border-b-accent'
|
? 'text-accent border-b-accent'
|
||||||
: 'border-b-separator'}"
|
: 'border-b-separator text-muted'}"
|
||||||
onclick={() => selectCategory(category)}
|
onclick={() => selectCategory(category)}
|
||||||
>
|
>
|
||||||
{category}
|
{category}
|
||||||
|
|
Loading…
Reference in New Issue