Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions app/components/FilterPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,11 @@ const hasActiveFilters = computed(() => !!filterSummary.value)
role="radio"
:aria-checked="filters.downloadRange === range.value"
class="tag transition-colors duration-200 focus-visible:ring-2 focus-visible:ring-fg focus-visible:ring-offset-1"
:class="filters.downloadRange === range.value ? 'bg-fg text-bg border-fg' : ''"
:class="
filters.downloadRange === range.value
? 'bg-fg text-bg border-fg hover:text-bg/50'
: ''
"
@click="emit('update:downloadRange', range.value)"
>
{{ $t(getDownloadRangeLabelKey(range.value)) }}
Expand All @@ -275,7 +279,11 @@ const hasActiveFilters = computed(() => !!filterSummary.value)
role="radio"
:aria-checked="filters.updatedWithin === option.value"
class="tag transition-colors duration-200 focus-visible:ring-2 focus-visible:ring-fg focus-visible:ring-offset-1"
:class="filters.updatedWithin === option.value ? 'bg-fg text-bg border-fg' : ''"
:class="
filters.updatedWithin === option.value
? 'bg-fg text-bg border-fg hover:text-bg/70'
: ''
"
@click="emit('update:updatedWithin', option.value)"
>
{{ $t(getUpdatedWithinLabelKey(option.value)) }}
Expand All @@ -300,7 +308,9 @@ const hasActiveFilters = computed(() => !!filterSummary.value)
disabled
:aria-checked="filters.security === option.value"
class="tag transition-colors duration-200 opacity-50 cursor-not-allowed focus-visible:ring-2 focus-visible:ring-fg focus-visible:ring-offset-1"
:class="filters.security === option.value ? 'bg-fg text-bg border-fg' : ''"
:class="
filters.security === option.value ? 'bg-fg text-bg border-fg hover:text-bg/70' : ''
"
>
{{ $t(getSecurityLabelKey(option.value)) }}
</button>
Expand All @@ -319,7 +329,9 @@ const hasActiveFilters = computed(() => !!filterSummary.value)
type="button"
:aria-pressed="filters.keywords.includes(keyword)"
class="tag text-xs transition-colors duration-200 focus-visible:ring-2 focus-visible:ring-fg focus-visible:ring-offset-1"
:class="filters.keywords.includes(keyword) ? 'bg-fg text-bg border-fg' : ''"
:class="
filters.keywords.includes(keyword) ? 'bg-fg text-bg border-fg hover:text-bg/70' : ''
"
@click="emit('toggleKeyword', keyword)"
>
{{ keyword }}
Expand Down
Loading