Skip to content

Commit cbbd022

Browse files
authored
fix: button hover style isn't correct (#402)
1 parent 611cc87 commit cbbd022

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

app/components/FilterPanel.vue

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,11 @@ const hasActiveFilters = computed(() => !!filterSummary.value)
250250
role="radio"
251251
:aria-checked="filters.downloadRange === range.value"
252252
class="tag transition-colors duration-200 focus-visible:ring-2 focus-visible:ring-fg focus-visible:ring-offset-1"
253-
:class="filters.downloadRange === range.value ? 'bg-fg text-bg border-fg' : ''"
253+
:class="
254+
filters.downloadRange === range.value
255+
? 'bg-fg text-bg border-fg hover:text-bg/50'
256+
: ''
257+
"
254258
@click="emit('update:downloadRange', range.value)"
255259
>
256260
{{ $t(getDownloadRangeLabelKey(range.value)) }}
@@ -275,7 +279,11 @@ const hasActiveFilters = computed(() => !!filterSummary.value)
275279
role="radio"
276280
:aria-checked="filters.updatedWithin === option.value"
277281
class="tag transition-colors duration-200 focus-visible:ring-2 focus-visible:ring-fg focus-visible:ring-offset-1"
278-
:class="filters.updatedWithin === option.value ? 'bg-fg text-bg border-fg' : ''"
282+
:class="
283+
filters.updatedWithin === option.value
284+
? 'bg-fg text-bg border-fg hover:text-bg/70'
285+
: ''
286+
"
279287
@click="emit('update:updatedWithin', option.value)"
280288
>
281289
{{ $t(getUpdatedWithinLabelKey(option.value)) }}
@@ -300,7 +308,9 @@ const hasActiveFilters = computed(() => !!filterSummary.value)
300308
disabled
301309
:aria-checked="filters.security === option.value"
302310
class="tag transition-colors duration-200 opacity-50 cursor-not-allowed focus-visible:ring-2 focus-visible:ring-fg focus-visible:ring-offset-1"
303-
:class="filters.security === option.value ? 'bg-fg text-bg border-fg' : ''"
311+
:class="
312+
filters.security === option.value ? 'bg-fg text-bg border-fg hover:text-bg/70' : ''
313+
"
304314
>
305315
{{ $t(getSecurityLabelKey(option.value)) }}
306316
</button>
@@ -319,7 +329,9 @@ const hasActiveFilters = computed(() => !!filterSummary.value)
319329
type="button"
320330
:aria-pressed="filters.keywords.includes(keyword)"
321331
class="tag text-xs transition-colors duration-200 focus-visible:ring-2 focus-visible:ring-fg focus-visible:ring-offset-1"
322-
:class="filters.keywords.includes(keyword) ? 'bg-fg text-bg border-fg' : ''"
332+
:class="
333+
filters.keywords.includes(keyword) ? 'bg-fg text-bg border-fg hover:text-bg/70' : ''
334+
"
323335
@click="emit('toggleKeyword', keyword)"
324336
>
325337
{{ keyword }}

0 commit comments

Comments
 (0)